diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 09:44:23 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 09:44:23 +0000 |
commit | 7c4927199c32bfb2f036a4bda8cf7521747b0f37 (patch) | |
tree | 8369c9d7a9cdfc250759f3ac9b88001c69ca1f5e /ld/testsuite/ld-i386 | |
parent | e970df31ca5085c0c9dfe8fce55ad17f6caef8b4 (diff) | |
download | gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.zip gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.tar.gz gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.tar.bz2 |
bfd/
* 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.
Diffstat (limited to 'ld/testsuite/ld-i386')
-rw-r--r-- | ld/testsuite/ld-i386/vxworks1-lib.rd | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/vxworks1-lib.s | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/vxworks1.ld | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/ld-i386/vxworks1-lib.rd b/ld/testsuite/ld-i386/vxworks1-lib.rd index c86ec1d..ab567b6 100644 --- a/ld/testsuite/ld-i386/vxworks1-lib.rd +++ b/ld/testsuite/ld-i386/vxworks1-lib.rd @@ -4,8 +4,9 @@ Relocation section '\.rel\.plt' at offset .* contains 2 entries: 0008140c .*07 R_386_JUMP_SLOT 00000000 sexternal 00081410 .*07 R_386_JUMP_SLOT 00080c27 sglobal -Relocation section '\.rel\.dyn' at offset .* contains 3 entries: +Relocation section '\.rel\.dyn' at offset .* contains 4 entries: Offset Info Type Sym\.Value Sym\. Name +00081c00 00000008 R_386_RELATIVE * 00080c03 .*01 R_386_32 00000000 __GOTT_BASE__ 00080c09 .*01 R_386_32 00000000 __GOTT_INDEX__ 00081414 .*06 R_386_GLOB_DAT 00081800 x diff --git a/ld/testsuite/ld-i386/vxworks1-lib.s b/ld/testsuite/ld-i386/vxworks1-lib.s index d2bbac0..f9f05dc 100644 --- a/ld/testsuite/ld-i386/vxworks1-lib.s +++ b/ld/testsuite/ld-i386/vxworks1-lib.s @@ -25,4 +25,7 @@ sglobal: ret .size sglobal, .-sglobal + .data + .4byte slocal + .comm x,4,4 diff --git a/ld/testsuite/ld-i386/vxworks1.ld b/ld/testsuite/ld-i386/vxworks1.ld index 4e31523..ff25b39 100644 --- a/ld/testsuite/ld-i386/vxworks1.ld +++ b/ld/testsuite/ld-i386/vxworks1.ld @@ -24,4 +24,7 @@ SECTIONS . = ALIGN (0x400); .bss : { *(.bss) *(.dynbss) } + + . = ALIGN (0x400); + .data : { *(.data) } } |