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: Adding stubs with new symbols and relocs to a (elf32) bfd from within the linker.


On Wed, Oct 07, 2015 at 11:59:13PM +0200, Anthony Brandon wrote:
> The problem is that I also want the relocations and symbols to end up
> in the output bfd, but I can't figure out how to get this to work.

You might be better off looking at elf64-ppc.c or elf32-ppc.c rather
than the ARM backend.  PowerPC is one of the few targets that bothers
to emit relocs on linker generated code, or modify existing relocs to
suit linker edited code.  If you're already familiar with the ARM stub
handling code it shouldn't be too hard to understand the ppc64 stub
handling.

-- 
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]