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: arm-ld, -q and interworking code


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


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