[PATCH] [2nd try] Show AIX gc'd symbol address adjustments in map file
Alan Modra
amodra@gmail.com
Thu May 14 10:37:59 GMT 2020
On Wed, May 13, 2020 at 04:04:20PM -0700, Douglas B Rupp wrote:
>
> On 5/13/20 3:58 PM, Alan Modra wrote:
> >
> > Well, you were using a section test in your original patch,
> > u.def.section->size. That's what sent me down this track. A section
> > size test is definitely wrong as a means of distinguishing garbage
> > collected sections from other sections, since a zero sized section
> > that isn't garbage collected may well define a symbol (usually at the
> > beginning of that section).
> >
> > By the look of xcoff_mark and xcoff_mark_symbol the direct test is
> > XCOFF_MARK in h->flags, but that's not so easy to do nicely from
> > ld/ldlang.c where we frown on including target specific headers.
> >
> OK, that's fair. FWIW, I tried to do the h->flags test first, but ran into
> the problem you describe.
>
> So what now?
I guess you get to implement ldemul_print_symbol, which we'll default
to the existing ldlang.c:print_one_symbol, and then you can override
the default in aix.em. git blame ld/ldemul.h to find one of the
recent additions to struct ld_emulation_xfer_struct in order to get an
idea of what is involved.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list