[PATCH] [2nd try] Show AIX gc'd symbol address adjustments in map file

Douglas B Rupp rupp@adacore.com
Wed May 13 23:04:20 GMT 2020


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?



More information about the Binutils mailing list