[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is this a bug?
From: |
Stephen Thomas |
Subject: |
Is this a bug? |
Date: |
Thu, 30 May 2002 11:12:05 +0100 |
Hi,
I have just hit a problem with SH5 binutils (V2.12.1), which I can best
illustrate with the following bit of assembler (this situation can never
arise from pure C):
.section .text..SHmedia32,"ax"
.align 5
.type hhh,@function
hhh:
.align 5
.global ggg
.type ggg,@function
ggg:
movi (((address@hidden) >> 16) & 65535), r1
shori ((address@hidden) & 65535), r1
Note that hhh is not marked as global. The above assembles OK, & an
'objdump -r' of the resulting object shows relocations for hhh. But when the
object file is linked, the linker gives the following errors (& aborts the
link):
z.o: In function `ggg':
z.o(.text..SHmedia32+0x0):dangerous relocation: Unexpected STO_SH5_ISA32 on
local symbol is not handled
z.o(.text..SHmedia32+0x4):dangerous relocation: Unexpected STO_SH5_ISA32 on
local symbol is not handled
It looks like the linker thinks that because hhh is non-global, it doesn't
have a GOT entry for it. The equivalent code works fine on x86 binutils (or
at least, it does on V2.11.90.8). But there is an entry in bfd/ChangeLog on
2002-02-28 which implies this is deliberate behaviour on SH5.
Could you please clarify whether this is a bug or not?
----------------------------------------------------------------------
Stephen R Thomas Email: address@hidden
SuperH (UK) Ltd Tel: 01454 462340
2430 Aztec West Mobile: 07973 867598
Almondsbury
Bristol BS32 4AQ
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Is this a bug?,
Stephen Thomas <=