diff options
author | Alan Modra <amodra@gmail.com> | 2024-12-14 11:26:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-12-14 19:19:32 +1030 |
commit | 5ba2d7a0a3340f1dd3372df9fa9c6ce739021a96 (patch) | |
tree | f5352cd00bff98185e63435508db430a0f039e60 /bfd/pdp11.c | |
parent | fff601fb3041a566d492d2704b3fcba92a1b026a (diff) | |
download | gdb-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/pdp11.c')
-rw-r--r-- | bfd/pdp11.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/pdp11.c b/bfd/pdp11.c index 7099c0b..f65760f 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -1842,7 +1842,7 @@ pdp11_aout_swap_reloc_out (bfd *abfd, arelent *g, bfd_byte *natptr) if (symbols != NULL && r_index < bfd_get_symcount (abfd)) \ cache_ptr->sym_ptr_ptr = symbols + r_index; \ else \ - cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; \ + cache_ptr->sym_ptr_ptr = &bfd_abs_section_ptr->symbol; \ cache_ptr->addend = ad; \ } \ else \ @@ -1853,23 +1853,23 @@ pdp11_aout_swap_reloc_out (bfd *abfd, arelent *g, bfd_byte *natptr) { \ case N_TEXT: \ case N_TEXT | N_EXT: \ - cache_ptr->sym_ptr_ptr = obj_textsec (abfd)->symbol_ptr_ptr; \ + cache_ptr->sym_ptr_ptr = &obj_textsec (abfd)->symbol; \ cache_ptr->addend = ad - su->textsec->vma; \ break; \ case N_DATA: \ case N_DATA | N_EXT: \ - cache_ptr->sym_ptr_ptr = obj_datasec (abfd)->symbol_ptr_ptr; \ + cache_ptr->sym_ptr_ptr = &obj_datasec (abfd)->symbol; \ cache_ptr->addend = ad - su->datasec->vma; \ break; \ case N_BSS: \ case N_BSS | N_EXT: \ - cache_ptr->sym_ptr_ptr = obj_bsssec (abfd)->symbol_ptr_ptr; \ + cache_ptr->sym_ptr_ptr = &obj_bsssec (abfd)->symbol; \ cache_ptr->addend = ad - su->bsssec->vma; \ break; \ default: \ case N_ABS: \ case N_ABS | N_EXT: \ - cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr; \ + cache_ptr->sym_ptr_ptr = &bfd_abs_section_ptr->symbol; \ cache_ptr->addend = ad; \ break; \ } \ |