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]

m68k binutils patch


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


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