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.
This commit is contained in:
Alan Modra
2024-12-14 11:26:45 +10:30
parent fff601fb30
commit 5ba2d7a0a3
35 changed files with 73 additions and 94 deletions

View File

@@ -481,7 +481,7 @@ write_coff_file (const char *filename, const char *target,
if (sec == NULL)
bfd_fatal ("bfd_make_section");
if (! bfd_set_symtab (abfd, sec->symbol_ptr_ptr, 1))
if (! bfd_set_symtab (abfd, &sec->symbol, 1))
bfd_fatal ("bfd_set_symtab");
/* Requiring this is probably a bug in BFD. */
@@ -498,7 +498,7 @@ write_coff_file (const char *filename, const char *target,
set_windres_bfd (&wrbfd, abfd, sec, WR_KIND_BFD);
cwi.wrbfd = &wrbfd;
cwi.sympp = sec->symbol_ptr_ptr;
cwi.sympp = &sec->symbol;
cwi.dirsize = 0;
cwi.dirstrsize = 0;
cwi.dataentsize = 0;