This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]