summaryrefslogtreecommitdiff
path: root/ld/ldelf.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/ldelf.c
parent1004091634f2aca697dd01a77b72ca81e52d753e (diff)
downloadbinutils-gdb-5617fae7034b141be20c51d901a62fb6ee573cfd.tar.gz
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/ldelf.c')
-rw-r--r--ld/ldelf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 121c25d948f..33c6a9f1f46 100644
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -1619,7 +1619,6 @@ ldelf_before_allocation (char *audit, char *depaudit,
sizeof ehdr_start_save_u);
ehdr_start->type = bfd_link_hash_defined;
/* It will be converted to section-relative later. */
- ehdr_start->rel_from_abs = 1;
ehdr_start->u.def.section = bfd_abs_section_ptr;
ehdr_start->u.def.value = 0;
}