mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
7c4927199c
* elf32-ppc.c (is_ppc_elf_target): Return true if the target is bfd_elf32_powerpc_vxworks_vec. ld/testsuite/ * ld-i386/vxworks1.ld (.data): New section. * ld-i386/vxworks1-lib.s: Add a pointer to a local symbol. * ld-i386/vxworks1-lib.rd: Test for the associated reloc. * ld-powerpc/vxworks1.ld (.data): New section. * ld-powerpc/vxworks1-lib.s: Add a pointer to a local symbol. * ld-powerpc/vxworks1-lib.rd: Test for the associated reloc.
32 lines
424 B
ArmAsm
32 lines
424 B
ArmAsm
.text
|
|
.globl foo
|
|
.type foo, @function
|
|
foo:
|
|
push %ebx
|
|
movl __GOTT_BASE__, %ebx
|
|
movl __GOTT_INDEX__(%ecx), %ebx
|
|
movl x@GOT(%ebx), %eax
|
|
incl (%eax)
|
|
call slocal@plt
|
|
call sglobal@plt
|
|
call sexternal@plt
|
|
pop %ebx
|
|
ret
|
|
.size foo, .-foo
|
|
|
|
.type slocal, @function
|
|
slocal:
|
|
ret
|
|
.size slocal, .-slocal
|
|
|
|
.globl sglobal
|
|
.type sglobal, @function
|
|
sglobal:
|
|
ret
|
|
.size sglobal, .-sglobal
|
|
|
|
.data
|
|
.4byte slocal
|
|
|
|
.comm x,4,4
|