This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm-ld, -q and interworking code
- From: Daniel Jacobowitz <drow at false dot org>
- To: tanaka <tanaka at personal-media dot co dot jp>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 7 Apr 2004 13:42:22 -0400
- Subject: Re: arm-ld, -q and interworking code
- References: <40738C69.5030308@personal-media.co.jp>
On Wed, Apr 07, 2004 at 02:06:49PM +0900, tanaka wrote:
> Hello,
>
> LD for ARM does not emits relocation information for the address
> which is in the interworking code When executed with -q option.
>
> >------------ test.r --------------
> >test: file format elf32-littlearm
> >
> >RELOCATION RECORDS FOR [.text]:
> >OFFSET TYPE VALUE
> >00000000 R_ARM_PC24 main
>
> I think
>
> 00000014 ?????? ?????
>
> is missing. Is this bug?
No. Or at least, not really.
> 0010000c <__main_from_arm>:
> 10000c: e59fc000 ldr ip, [pc, #0] ; 100014 <__main_from_arm+0x8>
> 100010: e12fff1c bx ip
> 100014: 00100005 andeqs r0, r0, r5
> -----------------------------------
This is a statically linked executable. The linker fills in the
address of main, but has no reason to use a relocation to do so.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer