diff options
author | Douglas B Rupp <rupp@adacore.com> | 2020-05-18 21:29:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-18 22:41:32 +0930 |
commit | 3edf7b9f2c79be0bffcc05d7a8b4364924255282 (patch) | |
tree | cf499e1cc207f511163402eda4591ac965657fc7 /ld/ldlang.c | |
parent | 6e0c75f7c4a94e835842f52aadb4e1a83c3b4e0a (diff) | |
download | gdb-3edf7b9f2c79be0bffcc05d7a8b4364924255282.zip gdb-3edf7b9f2c79be0bffcc05d7a8b4364924255282.tar.gz gdb-3edf7b9f2c79be0bffcc05d7a8b4364924255282.tar.bz2 |
Show AIX gc'd symbol address adjustments in map file
* ldemul.h (ldemul_print_symbol): New.
(ld_emulation_xfer_type) <print_symbol): Likewise.
* ldemul.c (ldemul_print_symbol): New.
* ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
(print_one_symbol): Make global and move declaration to ...
(print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
(print_input_section): Likewise
* ldlang.h: ... here.
* emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
(ld_emulation_xfer_struct): Use it.
* emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
and default to NULL.
* emultempl/beos.em (ld_emulation_xfer_struct): Likewise
* emultempl/elf.em (ld_emulation_xfer_struct): Likewise
* emultempl/generic.em (ld_emulation_xfer_struct): Likewise
* emultempl/linux.em (ld_emulation_xfer_struct): Likewise
* emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
* emultempl/pe.em (ld_emulation_xfer_struct): Likewise
* emultempl/pep.em (ld_emulation_xfer_struct): Likewise
* emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
* emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index b2cdb36..35791e4 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -155,8 +155,6 @@ static int lang_sizing_iteration = 0; #define outside_symbol_address(q) \ ((q)->value + outside_section_address (q->section)) -#define SECTION_NAME_MAP_LENGTH (16) - /* CTF sections smaller than this are not compressed: compression of dictionaries this small doesn't gain much, and this lets consumers mmap the sections directly out of the ELF file and use them with no decompression @@ -4619,7 +4617,7 @@ print_input_statement (lang_input_statement_type *statm) /* Print all symbols defined in a particular section. This is called via bfd_link_hash_traverse, or by print_all_symbols. */ -static bfd_boolean +bfd_boolean print_one_symbol (struct bfd_link_hash_entry *hash_entry, void *ptr) { asection *sec = (asection *) ptr; @@ -4683,7 +4681,7 @@ print_all_symbols (asection *sec) /* Print the symbols. */ for (i = 0; i < ud->map_symbol_def_count; i++) - print_one_symbol (entries[i], sec); + ldemul_print_symbol (entries[i], sec); obstack_free (&map_obstack, entries); } @@ -4747,7 +4745,7 @@ print_input_section (asection *i, bfd_boolean is_discarded) && i->output_section->owner == link_info.output_bfd) { if (link_info.reduce_memory_overheads) - bfd_link_hash_traverse (link_info.hash, print_one_symbol, i); + bfd_link_hash_traverse (link_info.hash, ldemul_print_symbol, i); else print_all_symbols (i); |