[PATCH] Re: Don't relax undefined symbols on ppc.

Alan Modra amodra@gmail.com
Mon Aug 27 05:04:00 GMT 2018


On Fri, Jul 27, 2018 at 09:52:48AM -0700, Douglas B Rupp wrote:
> Btw, the reason for my moving the branch_fixup struct to static was to be
> able to dump the fixups to the map file later on.  It was a customer
> enhancement request for us.
> 
> Do you think this is a worthwhile enhancement to merge?  I don't see how to
> do it easily without statically saving these fixups as they are created.

Yes, I do think this would be worth merging.  You'll need a global
list separate from branch_fixups.  branch_fixups should continue to
start from empty each ppc_elf_relax_section invocation, with
branch_fixups being tacked on to the global list rather than being
freed.  Free the fixups after/during printing to the map file.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list