This is the mail archive of the binutils@sourceware.org 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]

RFA: Tweak VxWorks tests


When I wrote the VxWorks linker tests, I stupidly put the .bss section
before the .data section.  This has started to cause problems on MIPS.
In the vxworks2 test, both sections are empty, but we also have to place
the .rld_map section as an orphan.  We put it (reasonably enough) after
.data, and so have three sections at the same address: .bss (size 0),
.data (size 0) and .rld_map (size 4).

elf_sort_sections puts SEC_LOAD sections before non-SEC_LOAD sections
(again reasonably enough), then puts zero-sized sections before others.
The final section order is therefore: .data, .rld_map and .bss.  We then
complain about .bss overlapping previous sections (namely .rld_map).

The tests used to work, so I don't know if the new behaviour can be
classed as a bug.  It isn't really what the VxWorks tests are there
for though.  This patch arranges the sections into a more logical order.

While there, I decided to copy the MIPS TEXTREL test to all other
VxWorks ports.

Tested on {arm,i586,mips,powerpc,sh,sparc}-wrs-vxworks.  OK to install?

Richard


ld/testsuite/
	* ld-arm/vxworks1.ld: Swap .bss and .data.
	* ld-arm/vxworks1-lib.rd: Update accordingly.
	* ld-arm/vxworks1-lib.td: New test.
	* ld-arm/arm-elf.exp: Run it.

	* ld-i386/vxworks1.ld: Swap .bss and .data.
	* ld-i386/vxworks1-lib.rd: Update accordingly.
	* ld-i386/vxworks1-lib.td: New test.
	* ld-i386/i386.exp: Run it.

	* ld-mips-elf/vxworks1.ld: Swap .bss and .data.
	* ld-mips-elf/vxworks1-lib.rd: Update accordingly.
	* ld-mips-elf/vxworks1.rd: Likewise.

	* ld-powerpc/vxworks1.ld: Swap .bss and .data.
	* ld-powerpc/vxworks1-lib.rd: Update accordingly.
	* ld-powerpc/vxworks1-lib.td: New test.
	* ld-powerpc/powerpc.exp: Run it.

	* ld-sh/vxworks1.ld: Swap .bss and .data.
	* ld-sh/vxworks1-lib.rd: Update accordingly.
	* ld-sh/vxworks1-lib.td: New test.
	* ld-sh/sh-vxworks.exp: Run it.

	* ld-sparc/vxworks1.ld: Swap .bss and .data.
	* ld-sparc/vxworks1-lib.rd: Update accordingly.
	* ld-sparc/vxworks1-lib.td: New test.
	* ld-sparc/sparc.exp: Run it.

Index: ld/testsuite/ld-arm/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/vxworks1.ld,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1.ld
--- ld/testsuite/ld-arm/vxworks1.ld	7 Mar 2006 08:39:21 -0000	1.1
+++ ld/testsuite/ld-arm/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,8 +23,8 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) *(.dynbss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) *(.dynbss) }
 }
Index: ld/testsuite/ld-arm/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/vxworks1-lib.rd,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1-lib.rd
--- ld/testsuite/ld-arm/vxworks1-lib.rd	7 Mar 2006 08:39:21 -0000	1.1
+++ ld/testsuite/ld-arm/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -6,7 +6,7 @@ Relocation section '\.rela\.plt' at offs
 
 Relocation section '\.rela\.dyn' at offset .* contains 4 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-00081c00  00000017 R_ARM_RELATIVE * 00080c38
+00081800  00000017 R_ARM_RELATIVE * 00080c38
 00080c0c  .*06 R_ARM_ABS12       00000000   __GOTT_INDEX__ \+ 0
 00080c30  .*02 R_ARM_ABS32       00000000   __GOTT_BASE__ \+ 0
-00081414  .*15 R_ARM_GLOB_DAT    00081800   x \+ 0
+00081414  .*15 R_ARM_GLOB_DAT    00081c00   x \+ 0
Index: ld/testsuite/ld-arm/vxworks1-lib.td
===================================================================
RCS file: ld/testsuite/ld-arm/vxworks1-lib.td
diff -N ld/testsuite/ld-arm/vxworks1-lib.td
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld/testsuite/ld-arm/vxworks1-lib.td	14 May 2007 12:37:08 -0000
@@ -0,0 +1,3 @@
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
Index: ld/testsuite/ld-arm/arm-elf.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-arm/arm-elf.exp,v
retrieving revision 1.23
diff -u -p -r1.23 arm-elf.exp
--- ld/testsuite/ld-arm/arm-elf.exp	17 Apr 2007 20:09:52 -0000	1.23
+++ ld/testsuite/ld-arm/arm-elf.exp	14 May 2007 12:37:08 -0000
@@ -21,7 +21,7 @@ if {[istarget "arm-*-vxworks"]} {
 	{"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
 	 "" {vxworks1-lib.s}
 	 {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
-	  {readelf --symbols vxworks1-lib.nd}}
+	  {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
 	 "libvxworks1.so"}
 	{"VxWorks executable test 1 (dynamic)" \
 	 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"
Index: ld/testsuite/ld-i386/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-i386/vxworks1.ld,v
retrieving revision 1.3
diff -u -p -r1.3 vxworks1.ld
--- ld/testsuite/ld-i386/vxworks1.ld	2 Mar 2006 09:44:23 -0000	1.3
+++ ld/testsuite/ld-i386/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,8 +23,8 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) *(.dynbss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) *(.dynbss) }
 }
Index: ld/testsuite/ld-i386/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-i386/vxworks1-lib.rd,v
retrieving revision 1.3
diff -u -p -r1.3 vxworks1-lib.rd
--- ld/testsuite/ld-i386/vxworks1-lib.rd	2 Mar 2006 09:44:23 -0000	1.3
+++ ld/testsuite/ld-i386/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -6,7 +6,7 @@ Relocation section '\.rel\.plt' at offse
 
 Relocation section '\.rel\.dyn' at offset .* contains 4 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name
-00081c00  00000008 R_386_RELATIVE *
+00081800  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
+00081414  .*06 R_386_GLOB_DAT    00081c00   x
Index: ld/testsuite/ld-i386/vxworks1-lib.td
===================================================================
RCS file: ld/testsuite/ld-i386/vxworks1-lib.td
diff -N ld/testsuite/ld-i386/vxworks1-lib.td
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld/testsuite/ld-i386/vxworks1-lib.td	14 May 2007 12:37:08 -0000
@@ -0,0 +1,3 @@
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
Index: ld/testsuite/ld-i386/i386.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-i386/i386.exp,v
retrieving revision 1.18
diff -u -p -r1.18 i386.exp
--- ld/testsuite/ld-i386/i386.exp	5 Apr 2007 16:16:28 -0000	1.18
+++ ld/testsuite/ld-i386/i386.exp	14 May 2007 12:37:08 -0000
@@ -24,7 +24,7 @@ if {[istarget "i?86-*-vxworks"]} {
 	{"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
 	 "" {vxworks1-lib.s}
 	 {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
-	  {readelf --symbols vxworks1-lib.nd}}
+	  {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
 	 "libvxworks1.so"}
 	{"VxWorks executable test 1 (dynamic)" \
 	 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"
Index: ld/testsuite/ld-mips-elf/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mips-elf/vxworks1.ld,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1.ld
--- ld/testsuite/ld-mips-elf/vxworks1.ld	22 Mar 2006 09:28:15 -0000	1.1
+++ ld/testsuite/ld-mips-elf/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,10 +23,10 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) *(.dynbss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) *(.dynbss) }
 
   /DISCARD/ : { *(.reginfo) }
 }
Index: ld/testsuite/ld-mips-elf/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mips-elf/vxworks1-lib.rd,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1-lib.rd
--- ld/testsuite/ld-mips-elf/vxworks1-lib.rd	22 Mar 2006 09:28:15 -0000	1.1
+++ ld/testsuite/ld-mips-elf/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -5,11 +5,11 @@ Relocation section '\.rela\.dyn' at offs
 00080c10  .*06 R_MIPS_LO16       00000000   __GOTT_BASE__ \+ 0
 00080c14  .*01 R_MIPS_16         00000000   __GOTT_INDEX__ \+ 0
 0008141c  .*02 R_MIPS_32         00080c00   \.text \+ 5c
-00081c00  00000002 R_MIPS_32                                    00080c5c
-00081c04  00000002 R_MIPS_32                                    00081c00
-00081c08  .*02 R_MIPS_32         00081c08   dglobal \+ 0
-00081c0c  .*02 R_MIPS_32         00000000   dexternal \+ 0
-00081424  .*02 R_MIPS_32         00081800   x \+ 0
+00081800  00000002 R_MIPS_32                                    00080c5c
+00081804  00000002 R_MIPS_32                                    00081800
+00081808  .*02 R_MIPS_32         00081808   dglobal \+ 0
+0008180c  .*02 R_MIPS_32         00000000   dexternal \+ 0
+00081424  .*02 R_MIPS_32         00081c00   x \+ 0
 00000000  00000000 R_MIPS_NONE                                  00000000
 #...
 Relocation section '\.rela\.plt' at offset .* contains 2 entries:
Index: ld/testsuite/ld-mips-elf/vxworks1.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-mips-elf/vxworks1.rd,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1.rd
--- ld/testsuite/ld-mips-elf/vxworks1.rd	22 Mar 2006 09:28:15 -0000	1.1
+++ ld/testsuite/ld-mips-elf/vxworks1.rd	14 May 2007 12:37:08 -0000
@@ -1,7 +1,7 @@
 
 Relocation section '\.rela\.dyn' at offset .* contains 1 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
-00081800  .*7e R_MIPS_COPY       00081800   dglobal \+ 0
+00081c00  .*7e R_MIPS_COPY       00081c00   dglobal \+ 0
 
 Relocation section '\.rela\.plt' at offset .* contains 2 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
@@ -16,9 +16,9 @@ Relocation section '\.rela\.text' at off
 
 Relocation section '\.rela\.data' at offset .* contains 3 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
-00081c00  .*02 R_MIPS_32         00081c00   .data \+ 0
-00081c04  .*02 R_MIPS_32         00081800   .bss \+ 0
-00081c08  .*02 R_MIPS_32         00081c04   dexternal \+ 0
+00081800  .*02 R_MIPS_32         00081800   .data \+ 0
+00081804  .*02 R_MIPS_32         00081c00   .bss \+ 0
+00081808  .*02 R_MIPS_32         00081804   dexternal \+ 0
 
 Relocation section '\.rela\.plt\.unloaded' at offset .* contains 8 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
Index: ld/testsuite/ld-powerpc/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/vxworks1.ld,v
retrieving revision 1.3
diff -u -p -r1.3 vxworks1.ld
--- ld/testsuite/ld-powerpc/vxworks1.ld	2 Mar 2006 15:16:27 -0000	1.3
+++ ld/testsuite/ld-powerpc/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,8 +23,8 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) }
 }
Index: ld/testsuite/ld-powerpc/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/vxworks1-lib.rd,v
retrieving revision 1.3
diff -u -p -r1.3 vxworks1-lib.rd
--- ld/testsuite/ld-powerpc/vxworks1-lib.rd	2 Mar 2006 15:16:27 -0000	1.3
+++ ld/testsuite/ld-powerpc/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -6,8 +6,8 @@ Relocation section '\.rela\.plt' at offs
 
 Relocation section '\.rela\.dyn' at offset .* contains 5 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-00090c00  00000016 R_PPC_RELATIVE * 00080c44
+00090800  00000016 R_PPC_RELATIVE * 00080c44
 00080c0e  .*06 R_PPC_ADDR16_HA   00000000   __GOTT_BASE__ \+ 0
 00080c12  .*04 R_PPC_ADDR16_LO   00000000   __GOTT_BASE__ \+ 0
 00080c16  .*03 R_PPC_ADDR16      00000000   __GOTT_INDEX__ \+ 0
-00090414  .*14 R_PPC_GLOB_DAT    00090800   x \+ 0
+00090414  .*14 R_PPC_GLOB_DAT    00090c00   x \+ 0
Index: ld/testsuite/ld-powerpc/vxworks1-lib.td
===================================================================
RCS file: ld/testsuite/ld-powerpc/vxworks1-lib.td
diff -N ld/testsuite/ld-powerpc/vxworks1-lib.td
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld/testsuite/ld-powerpc/vxworks1-lib.td	14 May 2007 12:37:08 -0000
@@ -0,0 +1,3 @@
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
Index: ld/testsuite/ld-powerpc/powerpc.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-powerpc/powerpc.exp,v
retrieving revision 1.16
diff -u -p -r1.16 powerpc.exp
--- ld/testsuite/ld-powerpc/powerpc.exp	24 Oct 2006 13:29:37 -0000	1.16
+++ ld/testsuite/ld-powerpc/powerpc.exp	14 May 2007 12:37:08 -0000
@@ -29,7 +29,7 @@ if {[istarget "*-*-vxworks"]} {
 	{"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
 	 "-mregnames" {vxworks1-lib.s}
 	 {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
-	  {readelf --symbols vxworks1-lib.nd}}
+	  {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
 	 "libvxworks1.so"}
 	{"VxWorks executable test 1 (dynamic)" \
 	 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"
Index: ld/testsuite/ld-sh/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/vxworks1.ld,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1.ld
--- ld/testsuite/ld-sh/vxworks1.ld	4 Aug 2006 13:13:56 -0000	1.1
+++ ld/testsuite/ld-sh/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,8 +23,8 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) *(.dynbss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) *(.dynbss) }
 }
Index: ld/testsuite/ld-sh/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/vxworks1-lib.rd,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1-lib.rd
--- ld/testsuite/ld-sh/vxworks1-lib.rd	4 Aug 2006 13:13:56 -0000	1.1
+++ ld/testsuite/ld-sh/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -6,7 +6,7 @@ Relocation section '\.rela\.plt' at offs
 
 Relocation section '\.rela\.dyn' at offset .* contains 4 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-00081c00  000000a5 R_SH_RELATIVE * 00080c48
+00081800  000000a5 R_SH_RELATIVE * 00080c48
 00080c30  .*01 R_SH_DIR32        00000000   ___GOTT_BASE__ \+ 0
 00080c34  .*01 R_SH_DIR32        00000000   ___GOTT_INDEX__ \+ 0
-00081414  .*a3 R_SH_GLOB_DAT     00081800   x \+ 0
+00081414  .*a3 R_SH_GLOB_DAT     00081c00   x \+ 0
Index: ld/testsuite/ld-sh/vxworks1-lib.td
===================================================================
RCS file: ld/testsuite/ld-sh/vxworks1-lib.td
diff -N ld/testsuite/ld-sh/vxworks1-lib.td
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld/testsuite/ld-sh/vxworks1-lib.td	14 May 2007 12:37:08 -0000
@@ -0,0 +1,3 @@
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
Index: ld/testsuite/ld-sh/sh-vxworks.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sh/sh-vxworks.exp,v
retrieving revision 1.1
diff -u -p -r1.1 sh-vxworks.exp
--- ld/testsuite/ld-sh/sh-vxworks.exp	4 Aug 2006 13:13:56 -0000	1.1
+++ ld/testsuite/ld-sh/sh-vxworks.exp	14 May 2007 12:37:08 -0000
@@ -10,7 +10,7 @@ foreach { gas_option ld_option suffix } 
 	 "$gas_option" {vxworks1-lib.s}
 	 {{readelf --relocs vxworks1-lib.rd}
 	  {objdump -dr vxworks1-lib$suffix.dd}
-	  {readelf --symbols vxworks1-lib.nd}}
+	  {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
 	 "libvxworks1.so"}
 	{"VxWorks executable test 1 (dynamic)" \
 	 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic $ld_option"
Index: ld/testsuite/ld-sparc/vxworks1.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sparc/vxworks1.ld,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1.ld
--- ld/testsuite/ld-sparc/vxworks1.ld	5 Apr 2006 12:41:58 -0000	1.1
+++ ld/testsuite/ld-sparc/vxworks1.ld	14 May 2007 12:37:08 -0000
@@ -23,8 +23,8 @@ SECTIONS
   .got : { *(.got.plt) *(.got) }
 
   . = ALIGN (0x400);
-  .bss : { *(.bss) }
+  .data : { *(.data) }
 
   . = ALIGN (0x400);
-  .data : { *(.data) }
+  .bss : { *(.bss) }
 }
Index: ld/testsuite/ld-sparc/vxworks1-lib.rd
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sparc/vxworks1-lib.rd,v
retrieving revision 1.1
diff -u -p -r1.1 vxworks1-lib.rd
--- ld/testsuite/ld-sparc/vxworks1-lib.rd	5 Apr 2006 12:41:58 -0000	1.1
+++ ld/testsuite/ld-sparc/vxworks1-lib.rd	14 May 2007 12:37:08 -0000
@@ -5,8 +5,8 @@ Relocation section '\.rela\.plt' at offs
 
 Relocation section '\.rela\.dyn' at offset .* contains 5 entries:
  Offset     Info    Type            Sym\.Value  Sym\. Name \+ Addend
-00090c00  00000016 R_SPARC_RELATIVE                             00080c44
+00090800  00000016 R_SPARC_RELATIVE                             00080c44
 00080c04  .*09 R_SPARC_HI22      00000000   __GOTT_BASE__ \+ 0
 00080c08  .*0c R_SPARC_LO10      00000000   __GOTT_BASE__ \+ 0
 00080c0c  .*0c R_SPARC_LO10      00000000   __GOTT_INDEX__ \+ 0
-00090410  .*14 R_SPARC_GLOB_DAT  00090800   x \+ 0
+00090410  .*14 R_SPARC_GLOB_DAT  00090c00   x \+ 0
Index: ld/testsuite/ld-sparc/vxworks1-lib.td
===================================================================
RCS file: ld/testsuite/ld-sparc/vxworks1-lib.td
diff -N ld/testsuite/ld-sparc/vxworks1-lib.td
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ld/testsuite/ld-sparc/vxworks1-lib.td	14 May 2007 12:37:08 -0000
@@ -0,0 +1,3 @@
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
Index: ld/testsuite/ld-sparc/sparc.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-sparc/sparc.exp,v
retrieving revision 1.7
diff -u -p -r1.7 sparc.exp
--- ld/testsuite/ld-sparc/sparc.exp	5 Apr 2006 12:41:58 -0000	1.7
+++ ld/testsuite/ld-sparc/sparc.exp	14 May 2007 12:37:08 -0000
@@ -24,7 +24,7 @@ if {[istarget "sparc-*-vxworks"]} {
 	{"VxWorks shared library test 1" "-shared -Tvxworks1.ld"
 	 "-KPIC" {vxworks1-lib.s}
 	 {{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
-	  {readelf --symbols vxworks1-lib.nd}}
+	  {readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
 	 "libvxworks1.so"}
 	{"VxWorks executable test 1 (dynamic)" \
 	 "tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic"


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