[PATCH/RFA] sh-elf: Unnecessary relocations
Alan Modra
amodra@bigpond.net.au
Wed Oct 2 17:56:00 GMT 2002
On Wed, Oct 02, 2002 at 11:53:54AM -0700, Stephen Clarke wrote:
> 00000000 <lab2-0x4>:
> 0: d0 01 mov.l 8 <lab2+0x4>,r0
> 2: 00 09 nop
>
> 00000004 <lab2>:
> 4: 00 00 .word 0x0000
sh-linux binutils built on Sep 28 assembles and links your testcase
OK, so it's not the gas reloc rewrite. phew! I believe the problem
is in tc-sh.c:md_pcrel_from_section where it looks like we have some
hacks to counteract bfd_install_relocation brain-damage. Since Kaz
changed the conditions under which we emit relocs, the test there
needs changing too. Also, IMO it would be cleaner to move the hacks
into md_apply_fix3.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list