ld --relax and PC relative short jumps.
Alan Modra
amodra@bigpond.net.au
Sat Nov 22 09:52:00 GMT 2003
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
More information about the Binutils
mailing list