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

Alan Modra amodra@gmail.com
Mon May 18 03:26:30 GMT 2020


On Sun, May 17, 2020 at 07:37:32PM -0700, Douglas B Rupp wrote:
> 
> Attached is my implementation using a new ldemul xfer.

Looks fine to commit with one small change..

> --- ld/emultempl/aix.em
> +++ ld/emultempl/aix.em
[snip]
> +
> +      /* Look up the symbol and flag it if it has been
> +	 garbage collected.  */
> +      h = ((struct xcoff_link_hash_entry *)
> +        bfd_link_hash_lookup ((&link_info)->hash, name, FALSE, FALSE, TRUE));

Here you don't need to look up the symbol again.  Simply cast the
symbol you already have to a struct xcoff_link_hash_entry *.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list