We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500416f commit f7624eeCopy full SHA for f7624ee
src/output-chunks.cc
@@ -1106,10 +1106,9 @@ void OutputSection<E>::scan_abs_relocations(Context<E> &ctx) {
1106
1107
// If --pack-dyn-relocs=relr is enabled, base relocations are put into
1108
// .relr.dyn.
1109
- if (ctx.arg.pack_dyn_relocs_relr)
+ if (ctx.arg.pack_dyn_relocs_relr && !(this->shdr.sh_flags & SHF_EXECINSTR))
1110
for (AbsRel<E> &r : abs_rels)
1111
if (r.kind == ABS_REL_BASEREL &&
1112
- !(r.isec->shdr().sh_flags & SHF_EXECINSTR) &&
1113
r.isec->shdr().sh_addralign % sizeof(Word<E>) == 0 &&
1114
r.offset % sizeof(Word<E>) == 0)
1115
r.kind = ABS_REL_RELR;
0 commit comments