[PATCH] [3rd try] Show AIX gc'd symbol address adjustments in map file

Douglas B Rupp rupp@adacore.com
Mon May 18 02:37:32 GMT 2020


Attached is my implementation using a new ldemul xfer.

Tested it on aix7.1 (works ok), and x86_64-linux (where it does nothing) 
and built --enable-targets=all to check for errors.

--Doug


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bnogc2.diff
Type: text/x-patch
Size: 9705 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200517/d814e0ff/attachment.bin>
-------------- next part --------------
2020-05-17  Douglas B Rupp  <rupp@adacore.com>

	* 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


More information about the Binutils mailing list