* 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.
+2007-05-15 Richard Sandiford <richard@codesourcery.com>
+
+ * 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.
+
2007-05-15 Richard Sandiford <richard@codesourcery.com>
* ld-mips-elf/vxworks1-lib.rd: Expect the GOT relocation to be
{"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"
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
--- /dev/null
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) *(.dynbss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) *(.dynbss) }
}
{"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"
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
--- /dev/null
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) *(.dynbss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) *(.dynbss) }
}
00080c10 .*06 R_MIPS_LO16 00000000 __GOTT_BASE__ \+ 0
00080c14 .*01 R_MIPS_16 00000000 __GOTT_INDEX__ \+ 0
0008141c 00000002 R_MIPS_32 00080c5c
-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:
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) *(.dynbss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) *(.dynbss) }
/DISCARD/ : { *(.reginfo) }
}
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
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
{"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"
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
--- /dev/null
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) }
}
"$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"
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
--- /dev/null
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) *(.dynbss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) *(.dynbss) }
}
{"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"
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
--- /dev/null
+#...
+ 0x0+16 \(TEXTREL\) +0x0
+#pass
.got : { *(.got.plt) *(.got) }
. = ALIGN (0x400);
- .bss : { *(.bss) }
+ .data : { *(.data) }
. = ALIGN (0x400);
- .data : { *(.data) }
+ .bss : { *(.bss) }
}