aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-26 10:25:24 +1030
committerAlan Modra <amodra@gmail.com>2022-01-28 17:00:55 +1030
commit5617fae7034b141be20c51d901a62fb6ee573cfd (patch)
tree2d3027be749d2ed76309630df34b4557a2708f2a /ld/ldlang.c
parent1004091634f2aca697dd01a77b72ca81e52d753e (diff)
downloadgdb-5617fae7034b141be20c51d901a62fb6ee573cfd.zip
gdb-5617fae7034b141be20c51d901a62fb6ee573cfd.tar.gz
gdb-5617fae7034b141be20c51d901a62fb6ee573cfd.tar.bz2
Set __ehdr_start rel_from_abs earlier
This is just a tidy, making the __ehdr_start symbol flag tweaks all in one place. * ldelf.c (ldelf_before_allocation): Don't set rel_from_abs for __ehdr_start. * ldlang.c (lang_symbol_tweaks): Set it here instead.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 4e6511b..5dd3df1 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -7022,6 +7022,7 @@ lang_symbol_tweaks (void)
h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN;
h->def_regular = 1;
h->root.linker_def = 1;
+ h->root.rel_from_abs = 1;
}
}
}