This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
m68k binutils patch
- To: binutils at sources dot redhat dot com
- Subject: m68k binutils patch
- From: Pauli <pauli at moreton dot com dot au>
- Date: Thu, 21 Jun 2001 13:19:23 +1000
- Organization: Lineo
- Reply-To: pauli at lineo dot com
Hi all,
Another patch to the m68k gas support which assists building position
independent code for ColdFire and other processors without the bra.l
instructions.
The problem is that the jbra instruction produces one of the following
instructions:
bra.s
bra.w
jmp
The exact choice being made based on the distance to be branched. The
hassle here is that the assembler will *silently* convert a relative
branch instruction into an absolute one which will cause position
independent code to fail in very mysterious ways.
My patch attempts to address this problem by adding a new command line
option "--relative-branches" which inhibits the conversion from
relative branches to absolute ones (generating an error if such is
required).
This problem also occurs for other instructions and the patch
addresses these cases too.
Regards,
Pauli
binutils-2.10-reloc.patch.gz