[PATCH] [2nd try] Show AIX gc'd symbol address adjustments in map file
Douglas B Rupp
rupp@adacore.com
Tue May 12 16:08:17 GMT 2020
Please ignore my 1st try with the wrong email address for Richard Sandiford
Greetings,
I seek feedback on the attached patch, which enhances the .map file to
show better address info on AIX XCOFF garbage collected symbols.
--Douglas Rupp, AdaCore
===============
The current .map file output with -nogc is something like this:
.pr 0x100012b0 0x20 ./pack1.o
0x100012b0 .pack1__fooIP
0x100012c0 .pack1__bumIP
.pr 0x100012d0 0x60 ./test1.o
----------
The current .map file output with -gc (the default) is something like this:
.pr 0x100012b0 0x0 ./pack1.o
0x100012b0 .pack1__fooIP
0x100012c0 .pack1__bumIP
.pr 0x100012b0 0x60 ./test1.o
Note that .pack1__fooIP and .pack1__bumIP have been gc'd and the
addresses make no sense.
------------
The output with the attached patch is something like this:
.pr 0x100012b0 0x0 ./pack1.o
0x100012b0 -->gc 0x100012b0 .pack1__fooIP
0x100012c0 -->gc 0x100012b0 .pack1__bumIP
.pr 0x100012b0 0x60 ./test1.o
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nogc1.diff
Type: text/x-patch
Size: 1669 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200512/3afcfdf8/attachment.bin>
More information about the Binutils
mailing list