aboutsummaryrefslogtreecommitdiff
path: root/bfd/linker.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-12-14 11:26:45 +1030
committerAlan Modra <amodra@gmail.com>2024-12-14 19:19:32 +1030
commit5ba2d7a0a3340f1dd3372df9fa9c6ce739021a96 (patch)
treef5352cd00bff98185e63435508db430a0f039e60 /bfd/linker.c
parentfff601fb3041a566d492d2704b3fcba92a1b026a (diff)
downloadgdb-5ba2d7a0a3340f1dd3372df9fa9c6ce739021a96.zip
gdb-5ba2d7a0a3340f1dd3372df9fa9c6ce739021a96.tar.gz
gdb-5ba2d7a0a3340f1dd3372df9fa9c6ce739021a96.tar.bz2
Delete asection.symbol_ptr_ptr
This field is always set to point to asection.symbol, and no code ever changes it from its initial value. With one exception. elfxx-mips.c creates two sections with separate pointers to their symbols, and uses those as asection.symbol_ptr_ptr. Those pointers aren't modified, so they disappear in this patch too.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r--bfd/linker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/linker.c b/bfd/linker.c
index 21009a8..c37dc57 100644
--- a/bfd/linker.c
+++ b/bfd/linker.c
@@ -2373,7 +2373,7 @@ _bfd_generic_reloc_link_order (bfd *abfd,
/* Get the symbol to use for the relocation. */
if (link_order->type == bfd_section_reloc_link_order)
- r->sym_ptr_ptr = link_order->u.reloc.p->u.section->symbol_ptr_ptr;
+ r->sym_ptr_ptr = &link_order->u.reloc.p->u.section->symbol;
else
{
struct generic_link_hash_entry *h;