mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user