This is the mail archive of the binutils@sources.redhat.com 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: ld --relax and PC relative short jumps.


On Sat, Nov 22, 2003 at 03:00:04PM +0530, Sanjiv Gupta wrote:
> How can I adjust PC relative jump offsets when the relaxation
>  deletes code between the jump and its target? I have no
> relocs emitted for these short jumps :(

Make sure you do emit relocs.  It's the only safe way for the linker to
determine what is a jump.  What happens if someone writes some asm to
put a table into .text and some random data byte happens to look like a
jump?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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