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]
Other format: [Raw text]

Re: [PATCH/RFA] sh-elf: Unnecessary relocations


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


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