aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ChangeLog8
-rw-r--r--ld/testsuite/ld-powerpc/apuinfo.rd10
-rw-r--r--ld/testsuite/ld-powerpc/apuinfo1.s9
-rw-r--r--ld/testsuite/ld-powerpc/apuinfo2.s8
-rw-r--r--ld/testsuite/ld-powerpc/powerpc.exp2
-rw-r--r--ld/testsuite/ld-srec/srec.exp2
6 files changed, 38 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 2f8179b..4226307 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2002-12-03 Nick Clifton <nickc@redhat.com>
+
+ * ld-powerpc/powerpc.exp (ppcelftests): Add apuinfo merging
+ test.
+ * ld-powerpc/apuinfo1.s: New assembler source file.
+ * ld-powerpc/apuinfo2.s: New assembler source file.
+ * ld-powerpc/apuinfo.rd: New expected output file.
+
2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
Fix PR savannah/1417:
diff --git a/ld/testsuite/ld-powerpc/apuinfo.rd b/ld/testsuite/ld-powerpc/apuinfo.rd
new file mode 100644
index 0000000..421ae7d
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/apuinfo.rd
@@ -0,0 +1,10 @@
+#source: apuinfo1.s
+#source: apuinfo2.s
+#as: -me500
+#readelf: -x5
+#target: powerpc-eabi*
+
+Hex dump of section '.PPC.EMB.apuinfo':
+ 0x00000000 00000008 00000007 00000002 41505569 ............APUi
+ 0x00000010 6e666f00 00420001 00430001 00410001 nfo..B...C...A..
+ 0x00000020 01020001 01010001 00400001 01000001 .........@......
diff --git a/ld/testsuite/ld-powerpc/apuinfo1.s b/ld/testsuite/ld-powerpc/apuinfo1.s
new file mode 100644
index 0000000..fd42eac
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/apuinfo1.s
@@ -0,0 +1,9 @@
+ .text
+ .global apuinfo1
+apuinfo1:
+ evstdd 29,8(1)
+ isellt 29, 28, 27
+ efsabs 29, 28
+ .global _start
+_start:
+ nop
diff --git a/ld/testsuite/ld-powerpc/apuinfo2.s b/ld/testsuite/ld-powerpc/apuinfo2.s
new file mode 100644
index 0000000..7f4e7bb
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/apuinfo2.s
@@ -0,0 +1,8 @@
+ .text
+ .global apuinfo2
+apuinfo2:
+ evstdd 29,8(1)
+ mfbbear 29
+ mfpmr 29, 27
+ dcbtstls 1, 29, 28
+ rfmci
diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp
index f52278d..a853df9 100644
--- a/ld/testsuite/ld-powerpc/powerpc.exp
+++ b/ld/testsuite/ld-powerpc/powerpc.exp
@@ -41,6 +41,8 @@ if { [istarget "*-*-macos*"] || [istarget "*-*-netware*"]
set ppcelftests {
{"Reloc section order" "-shared -z nocombreloc" "" {reloc.s}
{{objdump -hw reloc.d}} "reloc.so"}
+ {"APUinfo section processing" "" "-me500" {apuinfo1.s apuinfo2.s}
+ {{readelf -x5 apuinfo.rd}} "apuinfo"}
}
run_ld_link_tests $ppcelftests
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index d3fa764..af1ceed 100644
--- a/ld/testsuite/ld-srec/srec.exp
+++ b/ld/testsuite/ld-srec/srec.exp
@@ -370,7 +370,7 @@ setup_xfail "thumb-*-elf*"
setup_xfail "arm*-*-linux*"
# The S-record linker doesn't build special EABI sections.
-setup_xfail "powerpc*-*-eabi*"
+# setup_xfail "powerpc*-*-eabi*"
# The S-record linker doesn't include the .{zda} sections.
setup_xfail "v850*-*-elf"