This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/RFA] sh-elf: Unnecessary relocations
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Stephen Clarke <stephen dot clarke at earthling dot net>
- Cc: kkojima at rr dot iij4u dot or dot jp, binutils at sources dot redhat dot com, hp at bitrange dot com
- Date: Thu, 3 Oct 2002 10:26:22 +0930
- Subject: Re: [PATCH/RFA] sh-elf: Unnecessary relocations
- References: <002401c26a45$0ee65920$6301a8c0@wren>
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