diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 08:57:00 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 08:57:00 +0000 |
commit | 711de32caaff12a33dfcc10c0421388c7550bac0 (patch) | |
tree | 4356412f348c7c16a25aff55d8b5af2c9d50011f /ld | |
parent | 83503a060f6c6afe5b411f0056a8c826b6bb3f5a (diff) | |
download | gdb-711de32caaff12a33dfcc10c0421388c7550bac0.zip gdb-711de32caaff12a33dfcc10c0421388c7550bac0.tar.gz gdb-711de32caaff12a33dfcc10c0421388c7550bac0.tar.bz2 |
bfd/
* elf32-i386.c (elf_i386_create_dynamic_sections): Use
elf_vxworks_create_dynamic_sections.
(elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
symbol handling.
* elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
elf_vxworks_create_dynamic_sections.
(ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
symbol handling.
* elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
* elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
ld/testsuite/
* ld-i386/ld-i386/vxworks1-lib.nd: New test.
* ld-i386/i386.exp: Run it.
* ld-powerpc/ld-powerpc/vxworks1-lib.nd: New test.
* ld-powerpc/powerc.exp: Run it.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/vxworks1-lib.nd | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/vxworks1-lib.nd | 9 |
5 files changed, 29 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 8bc2c25..b3a93ad 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2006-03-02 Richard Sandiford <richard@codesourcery.com> + * ld-i386/ld-i386/vxworks1-lib.nd: New test. + * ld-i386/i386.exp: Run it. + * ld-powerpc/ld-powerpc/vxworks1-lib.nd: New test. + * ld-powerpc/powerc.exp: Run it. + +2006-03-02 Richard Sandiford <richard@codesourcery.com> + * ld-i386/vxworks1.ld: Use bigger alignments. Make sure .bss isn't placed as an orphan. * ld-i386/vxworks1-lib.dd, ld-i386/vxworks1.dd, diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index d5087d5..b0195ca 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -23,7 +23,8 @@ if {[istarget "i?86-*-vxworks"]} { set i386tests { {"VxWorks shared library test 1" "-shared -Tvxworks1.ld" "" {vxworks1-lib.s} - {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}} + {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd} + {readelf --symbols vxworks1-lib.nd}} "libvxworks1.so"} {"VxWorks dynamic executable test 1" \ "tmpdir/libvxworks1.so -Tvxworks1.ld -q" "" {vxworks1.s} diff --git a/ld/testsuite/ld-i386/vxworks1-lib.nd b/ld/testsuite/ld-i386/vxworks1-lib.nd new file mode 100644 index 0000000..edf3db3 --- /dev/null +++ b/ld/testsuite/ld-i386/vxworks1-lib.nd @@ -0,0 +1,9 @@ +#... +Symbol table '\.dynsym' .*: +#... +.*: 00081400 * 0 * OBJECT * GLOBAL * DEFAULT * [0-9]+ _GLOBAL_OFFSET_TABLE_ +#... +Symbol table '\.symtab' .*: +#... +.*: 00081400 * 0 * OBJECT * GLOBAL * DEFAULT * [0-9]+ _GLOBAL_OFFSET_TABLE_ +#pass diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index 5cfb313..db7fe59 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -28,7 +28,8 @@ if {[istarget "*-*-vxworks"]} { "libvxworks1.so"} {"VxWorks shared library test 1" "-shared -Tvxworks1.ld" "-mregnames" {vxworks1-lib.s} - {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}} + {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd} + {readelf --symbols vxworks1-lib.nd}} "libvxworks1.so"} {"VxWorks dynamic executable test 1" \ "tmpdir/libvxworks1.so -Tvxworks1.ld -q" "-mregnames" {vxworks1.s} diff --git a/ld/testsuite/ld-powerpc/vxworks1-lib.nd b/ld/testsuite/ld-powerpc/vxworks1-lib.nd new file mode 100644 index 0000000..edf3db3 --- /dev/null +++ b/ld/testsuite/ld-powerpc/vxworks1-lib.nd @@ -0,0 +1,9 @@ +#... +Symbol table '\.dynsym' .*: +#... +.*: 00081400 * 0 * OBJECT * GLOBAL * DEFAULT * [0-9]+ _GLOBAL_OFFSET_TABLE_ +#... +Symbol table '\.symtab' .*: +#... +.*: 00081400 * 0 * OBJECT * GLOBAL * DEFAULT * [0-9]+ _GLOBAL_OFFSET_TABLE_ +#pass |