This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
_GLOBAL_OFFSET_TABLE_ and assembler
- From: tanaka <tanaka at personal-media dot co dot jp>
- To: nickc at redhat dot com
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 10 Oct 2002 14:27:51 +0900
- Subject: _GLOBAL_OFFSET_TABLE_ and assembler
- Organization: personal media corp.
>Subject:Re: ARM-Thumb interwork and relocatable link
> .
> .
>Cheers
> Nick
Thanks.
Today's mail is another question.
Some assembler handles the keyword '_GLOBAL_OFFSET_TABLE_' sepcially.
But xscale-elf-as does not handle it specially.
I compared object file which is created by xscale-elf-as
with anoter one which is created by sh assembler.
sample source is:
-----------
.section .init
.global _init
_init:
I_GOT: .long _GLOBAL_OFFSET_TABLE_
I_TOP: .long dummy
-----------
sh assembler's output:
> Offset Info Type Symbol's Value Symbol's Name Addend
> 00000000 008a7 R_SH_GOTPC 00000000 _GLOBAL_OFFSET_TABLE_ + 0
> 00000004 00901 R_SH_DIR32 00000000 dummy + 0
xscale-elf-as's output:
> Offset Info Type Sym.Value Sym. Name
>00000000 00000802 R_ARM_ABS32 00000000 _GLOBAL_OFFSET_TABLE_
>00000004 00000902 R_ARM_ABS32 00000000 dummy
Is it correct?
I think R_ARM_ABS32 should be R_ARM_GOTPC.
configration of xscale-elf-as is:
../binutils-2.13/configure --prefix=/usr/local/te/tool/Linux-i686
--target=xscale-elf
tanaka@personal-media.co.jp