Skip to content

Commit f7624ee

Browse files
committed
Simplify
1 parent 500416f commit f7624ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/output-chunks.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,10 +1106,9 @@ void OutputSection<E>::scan_abs_relocations(Context<E> &ctx) {
11061106

11071107
// If --pack-dyn-relocs=relr is enabled, base relocations are put into
11081108
// .relr.dyn.
1109-
if (ctx.arg.pack_dyn_relocs_relr)
1109+
if (ctx.arg.pack_dyn_relocs_relr && !(this->shdr.sh_flags & SHF_EXECINSTR))
11101110
for (AbsRel<E> &r : abs_rels)
11111111
if (r.kind == ABS_REL_BASEREL &&
1112-
!(r.isec->shdr().sh_flags & SHF_EXECINSTR) &&
11131112
r.isec->shdr().sh_addralign % sizeof(Word<E>) == 0 &&
11141113
r.offset % sizeof(Word<E>) == 0)
11151114
r.kind = ABS_REL_RELR;

0 commit comments

Comments
 (0)