]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
This commit was manufactured by cvs2svn to create branch 'binutils-
authornobody <>
Mon, 11 Jun 2001 01:07:03 +0000 (01:07 +0000)
committernobody <>
Mon, 11 Jun 2001 01:07:03 +0000 (01:07 +0000)
2_11-branch'.

Cherrypick from master 2001-06-11 01:07:02 UTC H.J. Lu <hjl.tools@gmail.com> '2001-06-10  H.J. Lu  <hjl@gnu.org>':
    binutils/testsuite/binutils-all/readelf.ss-tmips
    gas/testsuite/gas/elf/section2.e
    gas/testsuite/gas/elf/section2.e-mips
    gas/testsuite/gas/elf/section2.l
    gas/testsuite/gas/elf/section2.s
    gas/testsuite/gas/mips/elf-rel3.d
    gas/testsuite/gas/mips/elf-rel3.s
    gas/testsuite/gas/mips/elfel-rel3.d
    gas/testsuite/gas/mips/mipsel16-f.d
    gas/testsuite/gas/mips/telempic.d
    gas/testsuite/gas/mips/tempic.d
    gas/testsuite/gas/mips/tmips16-e.d
    gas/testsuite/gas/mips/tmipsel16-e.d
    ld/testsuite/ld-shared/symbolic.dat

14 files changed:
binutils/testsuite/binutils-all/readelf.ss-tmips [new file with mode: 0644]
gas/testsuite/gas/elf/section2.e [new file with mode: 0644]
gas/testsuite/gas/elf/section2.e-mips [new file with mode: 0644]
gas/testsuite/gas/elf/section2.l [new file with mode: 0644]
gas/testsuite/gas/elf/section2.s [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel3.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel3.s [new file with mode: 0644]
gas/testsuite/gas/mips/elfel-rel3.d [new file with mode: 0644]
gas/testsuite/gas/mips/mipsel16-f.d [new file with mode: 0644]
gas/testsuite/gas/mips/telempic.d [new file with mode: 0644]
gas/testsuite/gas/mips/tempic.d [new file with mode: 0644]
gas/testsuite/gas/mips/tmips16-e.d [new file with mode: 0644]
gas/testsuite/gas/mips/tmipsel16-e.d [new file with mode: 0644]
ld/testsuite/ld-shared/symbolic.dat [new file with mode: 0644]

diff --git a/binutils/testsuite/binutils-all/readelf.ss-tmips b/binutils/testsuite/binutils-all/readelf.ss-tmips
new file mode 100644 (file)
index 0000000..da2a75b
--- /dev/null
@@ -0,0 +1,15 @@
+
+Symbol table '.symtab' contains 12 entries:
+   Num:    Value  Size Type    Bind   Vis      Ndx Name
+     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
+     1: 00000000     0 SECTION LOCAL  DEFAULT    1 
+     2: 00000000     0 SECTION LOCAL  DEFAULT    4 
+     3: 00000000     0 SECTION LOCAL  DEFAULT    5 
+     4: 00000000     0 NOTYPE  LOCAL  DEFAULT    1 static_text_symbol
+     5: 00000000     0 NOTYPE  LOCAL  DEFAULT    4 static_data_symbol
+     6: 00000000     0 SECTION LOCAL  DEFAULT    6 
+     7: 00000000     0 SECTION LOCAL  DEFAULT    7 
+     8: 00000000     0 OBJECT  GLOBAL DEFAULT    1 text_symbol
+     9: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND external_symbol
+    10: 00000000     0 OBJECT  GLOBAL DEFAULT    4 data_symbol
+    11: 00000004     4 OBJECT  GLOBAL DEFAULT  (PRC|COM) common_symbol
diff --git a/gas/testsuite/gas/elf/section2.e b/gas/testsuite/gas/elf/section2.e
new file mode 100644 (file)
index 0000000..c424082
--- /dev/null
@@ -0,0 +1,8 @@
+
+Symbol table '.symtab' contains 5 entries:
+   Num:    Value[      ]* Size Type    Bind   Vis      Ndx Name
+     0: 0+0     0 NOTYPE  LOCAL  DEFAULT  UND 
+     1: 0+0     0 SECTION LOCAL  DEFAULT    1 
+     2: 0+0     0 SECTION LOCAL  DEFAULT    2 
+     3: 0+0     0 SECTION LOCAL  DEFAULT    3 
+     4: 0+0     0 SECTION LOCAL  DEFAULT    4 
diff --git a/gas/testsuite/gas/elf/section2.e-mips b/gas/testsuite/gas/elf/section2.e-mips
new file mode 100644 (file)
index 0000000..d09ab19
--- /dev/null
@@ -0,0 +1,10 @@
+
+Symbol table '.symtab' contains 7 entries:
+   Num:    Value[      ]* Size Type    Bind   Vis      Ndx Name
+     0: 0+0     0 NOTYPE  LOCAL  DEFAULT  UND 
+     1: 0+0     0 SECTION LOCAL  DEFAULT    1 
+     2: 0+0     0 SECTION LOCAL  DEFAULT    2 
+     3: 0+0     0 SECTION LOCAL  DEFAULT    3 
+     4: 0+0     0 SECTION LOCAL  DEFAULT    6 
+     5: 0+0     0 SECTION LOCAL  DEFAULT    4 
+     6: 0+0     0 SECTION LOCAL  DEFAULT    5 
diff --git a/gas/testsuite/gas/elf/section2.l b/gas/testsuite/gas/elf/section2.l
new file mode 100644 (file)
index 0000000..00ad743
--- /dev/null
@@ -0,0 +1,8 @@
+.*: Assembler messages:
+.*:2: Warning: Section symbols are already global
+.*GAS.*
+
+
+[      ]+1[    ]+.section A
+[      ]+2[    ]+.global A
+[      ]+3 0000 31[    ]+.byte 49
diff --git a/gas/testsuite/gas/elf/section2.s b/gas/testsuite/gas/elf/section2.s
new file mode 100644 (file)
index 0000000..02239e7
--- /dev/null
@@ -0,0 +1,3 @@
+          .section A
+          .global A
+         .byte 49
diff --git a/gas/testsuite/gas/mips/elf-rel3.d b/gas/testsuite/gas/mips/elf-rel3.d
new file mode 100644 (file)
index 0000000..41eaf57
--- /dev/null
@@ -0,0 +1,13 @@
+#objdump: -sr -j .data
+#name: MIPS ELF reloc 3
+
+.*:     file format elf.*mips
+
+RELOCATION RECORDS FOR \[\.data\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_32         b
+0+0000008 R_MIPS_32         .data
+
+
+Contents of section .data:
+ 0000 12121212 00000004 00000000 00000000  ................
diff --git a/gas/testsuite/gas/mips/elf-rel3.s b/gas/testsuite/gas/mips/elf-rel3.s
new file mode 100644 (file)
index 0000000..ddf2bef
--- /dev/null
@@ -0,0 +1,11 @@
+       .data
+       .type    x,@object
+       .size    x,4
+x:
+       .word   0x12121212
+       .globl  b
+       .type    b,@object
+       .size    b,8
+b:
+       .word   b+4
+       .word   x
diff --git a/gas/testsuite/gas/mips/elfel-rel3.d b/gas/testsuite/gas/mips/elfel-rel3.d
new file mode 100644 (file)
index 0000000..f630d4b
--- /dev/null
@@ -0,0 +1,14 @@
+#objdump: -sr -j .data
+#name: MIPS ELF reloc 3
+#source: elf-rel3.s
+
+.*:     file format elf.*mips
+
+RELOCATION RECORDS FOR \[\.data\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_32         b
+0+0000008 R_MIPS_32         .data
+
+
+Contents of section .data:
+ 0000 12121212 04000000 00000000 00000000  ................
diff --git a/gas/testsuite/gas/mips/mipsel16-f.d b/gas/testsuite/gas/mips/mipsel16-f.d
new file mode 100644 (file)
index 0000000..d0eadb1
--- /dev/null
@@ -0,0 +1,34 @@
+#objdump: -rst -mips16
+#name: MIPS16 reloc 2
+#as: -mips16
+#source: mips16-f.s
+
+# Check MIPS16 reloc processing
+
+.*: +file format elf.*mips.*
+
+SYMBOL TABLE:
+0+0000000 l    d  \.text       0+0000000 
+0+0000000 l    d  \.data       0+0000000 
+0+0000000 l    d  \.bss        0+0000000 
+0+0000002 l       \.text       0+0000000 0xf0 l1
+0+0000000 l    d  foo  0+0000000 
+0+0000000 l    d  \.reginfo    0+0000000 
+0+0000000 l    d  \.(mdebug|pdr)       0+0000000 
+
+
+RELOCATION RECORDS FOR \[foo\]:
+OFFSET           TYPE              VALUE 
+0+0000000 R_MIPS_32         l1
+
+
+Contents of section \.text:
+ 0000 00650065 00650065 00650065 00650065  .*
+Contents of section \.data:
+Contents of section \.reginfo:
+ 0000 01000000 00000000 00000000 00000000  .*
+ 0010 00000000 00000000                    .*
+Contents of section \.(mdebug|pdr):
+#...
+Contents of section foo:
+ 0000 00000003 00000000 00000000 00000000  .*
diff --git a/gas/testsuite/gas/mips/telempic.d b/gas/testsuite/gas/mips/telempic.d
new file mode 100644 (file)
index 0000000..db4a8c0
--- /dev/null
@@ -0,0 +1,153 @@
+#objdump: -rst -mmips:4000
+#name: MIPS empic
+#as: -membedded-pic -mips3
+#source: empic.s
+
+# Check GNU-specific embedded relocs, for ELF.
+
+.*: +file format elf.*mips.*
+
+SYMBOL TABLE:
+0+0000000 l    d  \.text       0+0000000 
+0+0000000 l    d  \.data       0+0000000 
+0+0000000 l    d  \.bss        0+0000000 
+0+0000004 l       \.text       0+0000000 l2
+0+0000100 l       \.foo        0+0000000 l1
+0+0000034 l       \.text       0+0000000 l3
+0+0000098 l       \.text       0+0000000 l5
+0+0000000 l    d  \.foo        0+0000000 
+0+0000004 l       \.foo        0+0000000 l4
+0+0000000 l    d  \.reginfo    0+0000000 
+0+0000000 l    d  \.(mdebug|pdr)       0+0000000 
+0+0000000         \*UND\*      0+0000000 g1
+0+0000000         \*UND\*      0+0000000 g2
+
+
+RELOCATION RECORDS FOR \[\.text\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_GNU_REL16_S2  g1
+0+000000c R_MIPS_GNU_REL16_S2  g2
+0+0000014 R_MIPS_GNU_REL16_S2  g2
+0+000001c R_MIPS_GNU_REL16_S2  \.foo
+0+0000024 R_MIPS_GNU_REL16_S2  \.text
+0+000002c R_MIPS_GNU_REL16_S2  \.foo
+0+0000034 R_MIPS_GNU_REL16_S2  \.text
+0+000003c R_MIPS_GNU_REL_HI16  g1
+0+0000040 R_MIPS_GNU_REL_LO16  g1
+0+0000044 R_MIPS_GNU_REL_HI16  \.foo
+0+0000048 R_MIPS_GNU_REL_LO16  \.foo
+0+0000050 R_MIPS_32         g1
+0+0000054 R_MIPS_32         \.foo
+0+0000058 R_MIPS_32         \.text
+0+000005c R_MIPS_PC32       g1
+0+0000060 R_MIPS_PC32       \.foo
+0+0000068 R_MIPS_64         g1
+0+0000070 R_MIPS_64         \.foo
+0+0000078 R_MIPS_64         \.text
+0+0000080 R_MIPS_PC64       g1
+0+0000088 R_MIPS_PC64       \.foo
+0+0000098 R_MIPS_GNU_REL16_S2  \.text
+0+000009c R_MIPS_GNU_REL16_S2  \.text
+0+00000a0 R_MIPS_GNU_REL_HI16  \.text
+0+00000a4 R_MIPS_GNU_REL_LO16  \.text
+0+00000a8 R_MIPS_GNU_REL_HI16  \.text
+0+00000ac R_MIPS_GNU_REL_LO16  \.text
+0+00000b0 R_MIPS_32         \.text
+0+00000b8 R_MIPS_64         \.text
+0+00000cc R_MIPS_GNU_REL16_S2  \.text
+0+00000d0 R_MIPS_GNU_REL16_S2  \.text
+0+00000dc R_MIPS_32         \.text
+0+00000e8 R_MIPS_64         \.text
+
+
+RELOCATION RECORDS FOR \[\.foo\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_GNU_REL_HI16  g1
+0+0000008 R_MIPS_GNU_REL_LO16  g1
+0+000000c R_MIPS_GNU_REL_HI16  \.foo
+0+0000010 R_MIPS_GNU_REL_LO16  \.foo
+0+0000014 R_MIPS_GNU_REL_HI16  \.text
+0+0000018 R_MIPS_GNU_REL_LO16  \.text
+0+000001c R_MIPS_GNU_REL_HI16  g1
+0+0000020 R_MIPS_GNU_REL_LO16  g1
+0+0000024 R_MIPS_GNU_REL_HI16  g1
+0+0000028 R_MIPS_GNU_REL_LO16  g1
+0+000002c R_MIPS_GNU_REL_HI16  \.foo
+0+0000030 R_MIPS_GNU_REL_LO16  \.foo
+0+0000034 R_MIPS_GNU_REL_HI16  \.text
+0+0000038 R_MIPS_GNU_REL_LO16  \.text
+0+000003c R_MIPS_32         g1
+0+0000040 R_MIPS_32         \.foo
+0+0000044 R_MIPS_32         \.text
+0+0000048 R_MIPS_PC32       g1
+0+0000050 R_MIPS_PC32       \.text
+0+0000058 R_MIPS_64         g1
+0+0000060 R_MIPS_64         \.foo
+0+0000068 R_MIPS_64         \.text
+0+0000070 R_MIPS_PC64       g1
+0+0000080 R_MIPS_PC64       \.text
+0+0000088 R_MIPS_GNU_REL_HI16  g1
+0+000008c R_MIPS_GNU_REL_LO16  g1
+0+0000090 R_MIPS_GNU_REL_HI16  \.foo
+0+0000094 R_MIPS_GNU_REL_LO16  \.foo
+0+0000098 R_MIPS_GNU_REL_HI16  \.text
+0+000009c R_MIPS_GNU_REL_LO16  \.text
+0+00000a0 R_MIPS_GNU_REL_HI16  g1
+0+00000a4 R_MIPS_GNU_REL_LO16  g1
+0+00000a8 R_MIPS_GNU_REL_HI16  \.foo
+0+00000ac R_MIPS_GNU_REL_LO16  \.foo
+0+00000b0 R_MIPS_GNU_REL_HI16  \.text
+0+00000b4 R_MIPS_GNU_REL_LO16  \.text
+0+00000b8 R_MIPS_32         g1
+0+00000bc R_MIPS_32         \.foo
+0+00000c0 R_MIPS_32         \.text
+0+00000c4 R_MIPS_PC32       g1
+0+00000cc R_MIPS_PC32       \.text
+0+00000d0 R_MIPS_64         g1
+0+00000d8 R_MIPS_64         \.foo
+0+00000e0 R_MIPS_64         \.text
+0+00000e8 R_MIPS_PC64       g1
+0+00000f8 R_MIPS_PC64       \.text
+
+Contents of section \.text:
+ 0000 00000000 ffff1104 00000000 ffff0010  .*
+ 0010 00000000 ffff0010 00000000 3f001104  .*
+ 0020 00000000 00001104 00000000 41000010  .*
+ 0030 00000000 00000010 00000000 0000033c  .*
+ 0040 0c0063[26]4 0000033c 140163[26]4 d0ff0324  .*
+ 0050 00000000 00010000 04000000 28000000  .*
+ 0060 2c010000 d0ffffff 00000000 00000000  .*
+ 0070 00010000 00000000 04000000 00000000  .*
+ 0080 4c000000 00000000 54010000 00000000  .*
+ 0090 d0ffffff ffffffff 32000010 33000010  .*
+ 00a0 0000033c d80063[26]4 0000033c e80063[26]4  .*
+ 00b0 cc000000 34000000 cc000000 00000000  .*
+ 00c0 34000000 00000000 00000000 32000010  .*
+ 00d0 33000010 34000324 3c000324 cc000000  .*
+ 00e0 34000000 00000000 cc000000 00000000  .*
+ 00f0 34000000 00000000 00000000 00000000  .*
+Contents of section \.data:
+Contents of section \.reginfo:
+ 0000 08000080 00000000 00000000 00000000  .*
+ 0010 00000000 00000000                    .*
+Contents of section \.(mdebug|pdr):
+#...
+Contents of section \.foo:
+ 0000 00000000 0000033c 040063[26]4 0000033c  .*
+ 0010 0c0163[26]4 0000033c 180063[26]4 0000033c  .*
+ 0020 1c0063[26]4 0000033c 240063[26]4 0000033c  .*
+ 0030 2c0163[26]4 0000033c 380063[26]4 00000000  .*
+ 0040 00010000 04000000 44000000 fc000000  .*
+ 0050 50000000 00000000 00000000 00000000  .*
+ 0060 00010000 00000000 04000000 00000000  .*
+ 0070 6c000000 00000000 fc000000 00000000  .*
+ 0080 80000000 00000000 0000033c 8c0063[26]4  .*
+ 0090 0000033c 940163[26]4 0000033c a00063[26]4  .*
+ 00a0 0000033c a40063[26]4 0000033c ac0163[26]4  .*
+ 00b0 0000033c b80063[26]4 04000000 04010000  .*
+ 00c0 08000000 c4000000 00010000 d0000000  .*
+ 00d0 04000000 00000000 04010000 00000000  .*
+ 00e0 08000000 00000000 e8000000 00000000  .*
+ 00f0 00010000 00000000 fc000000 00000000  .*
+ 0100 00000000 00000000 00000000 00000000  .*
+
diff --git a/gas/testsuite/gas/mips/tempic.d b/gas/testsuite/gas/mips/tempic.d
new file mode 100644 (file)
index 0000000..0f1ad8b
--- /dev/null
@@ -0,0 +1,153 @@
+#objdump: -rst -mmips:4000
+#name: MIPS empic
+#as: -membedded-pic -mips3
+#source: empic.s
+
+# Check GNU-specific embedded relocs, for ELF.
+
+.*: +file format elf.*mips.*
+
+SYMBOL TABLE:
+0+0000000 l    d  \.text       0+0000000 
+0+0000000 l    d  \.data       0+0000000 
+0+0000000 l    d  \.bss        0+0000000 
+0+0000004 l       \.text       0+0000000 l2
+0+0000100 l       \.foo        0+0000000 l1
+0+0000034 l       \.text       0+0000000 l3
+0+0000098 l       \.text       0+0000000 l5
+0+0000000 l    d  \.foo        0+0000000 
+0+0000004 l       \.foo        0+0000000 l4
+0+0000000 l    d  \.reginfo    0+0000000 
+0+0000000 l    d  \.(mdebug|pdr)       0+0000000 
+0+0000000         \*UND\*      0+0000000 g1
+0+0000000         \*UND\*      0+0000000 g2
+
+
+RELOCATION RECORDS FOR \[\.text\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_GNU_REL16_S2  g1
+0+000000c R_MIPS_GNU_REL16_S2  g2
+0+0000014 R_MIPS_GNU_REL16_S2  g2
+0+000001c R_MIPS_GNU_REL16_S2  \.foo
+0+0000024 R_MIPS_GNU_REL16_S2  \.text
+0+000002c R_MIPS_GNU_REL16_S2  \.foo
+0+0000034 R_MIPS_GNU_REL16_S2  \.text
+0+000003c R_MIPS_GNU_REL_HI16  g1
+0+0000040 R_MIPS_GNU_REL_LO16  g1
+0+0000044 R_MIPS_GNU_REL_HI16  \.foo
+0+0000048 R_MIPS_GNU_REL_LO16  \.foo
+0+0000050 R_MIPS_32         g1
+0+0000054 R_MIPS_32         \.foo
+0+0000058 R_MIPS_32         \.text
+0+000005c R_MIPS_PC32       g1
+0+0000060 R_MIPS_PC32       \.foo
+0+0000068 R_MIPS_64         g1
+0+0000070 R_MIPS_64         \.foo
+0+0000078 R_MIPS_64         \.text
+0+0000080 R_MIPS_PC64       g1
+0+0000088 R_MIPS_PC64       \.foo
+0+0000098 R_MIPS_GNU_REL16_S2  \.text
+0+000009c R_MIPS_GNU_REL16_S2  \.text
+0+00000a0 R_MIPS_GNU_REL_HI16  \.text
+0+00000a4 R_MIPS_GNU_REL_LO16  \.text
+0+00000a8 R_MIPS_GNU_REL_HI16  \.text
+0+00000ac R_MIPS_GNU_REL_LO16  \.text
+0+00000b0 R_MIPS_32         \.text
+0+00000b8 R_MIPS_64         \.text
+0+00000cc R_MIPS_GNU_REL16_S2  \.text
+0+00000d0 R_MIPS_GNU_REL16_S2  \.text
+0+00000dc R_MIPS_32         \.text
+0+00000e8 R_MIPS_64         \.text
+
+
+RELOCATION RECORDS FOR \[\.foo\]:
+OFFSET           TYPE              VALUE 
+0+0000004 R_MIPS_GNU_REL_HI16  g1
+0+0000008 R_MIPS_GNU_REL_LO16  g1
+0+000000c R_MIPS_GNU_REL_HI16  \.foo
+0+0000010 R_MIPS_GNU_REL_LO16  \.foo
+0+0000014 R_MIPS_GNU_REL_HI16  \.text
+0+0000018 R_MIPS_GNU_REL_LO16  \.text
+0+000001c R_MIPS_GNU_REL_HI16  g1
+0+0000020 R_MIPS_GNU_REL_LO16  g1
+0+0000024 R_MIPS_GNU_REL_HI16  g1
+0+0000028 R_MIPS_GNU_REL_LO16  g1
+0+000002c R_MIPS_GNU_REL_HI16  \.foo
+0+0000030 R_MIPS_GNU_REL_LO16  \.foo
+0+0000034 R_MIPS_GNU_REL_HI16  \.text
+0+0000038 R_MIPS_GNU_REL_LO16  \.text
+0+000003c R_MIPS_32         g1
+0+0000040 R_MIPS_32         \.foo
+0+0000044 R_MIPS_32         \.text
+0+0000048 R_MIPS_PC32       g1
+0+0000050 R_MIPS_PC32       \.text
+0+0000058 R_MIPS_64         g1
+0+0000060 R_MIPS_64         \.foo
+0+0000068 R_MIPS_64         \.text
+0+0000070 R_MIPS_PC64       g1
+0+0000080 R_MIPS_PC64       \.text
+0+0000088 R_MIPS_GNU_REL_HI16  g1
+0+000008c R_MIPS_GNU_REL_LO16  g1
+0+0000090 R_MIPS_GNU_REL_HI16  \.foo
+0+0000094 R_MIPS_GNU_REL_LO16  \.foo
+0+0000098 R_MIPS_GNU_REL_HI16  \.text
+0+000009c R_MIPS_GNU_REL_LO16  \.text
+0+00000a0 R_MIPS_GNU_REL_HI16  g1
+0+00000a4 R_MIPS_GNU_REL_LO16  g1
+0+00000a8 R_MIPS_GNU_REL_HI16  \.foo
+0+00000ac R_MIPS_GNU_REL_LO16  \.foo
+0+00000b0 R_MIPS_GNU_REL_HI16  \.text
+0+00000b4 R_MIPS_GNU_REL_LO16  \.text
+0+00000b8 R_MIPS_32         g1
+0+00000bc R_MIPS_32         \.foo
+0+00000c0 R_MIPS_32         \.text
+0+00000c4 R_MIPS_PC32       g1
+0+00000cc R_MIPS_PC32       \.text
+0+00000d0 R_MIPS_64         g1
+0+00000d8 R_MIPS_64         \.foo
+0+00000e0 R_MIPS_64         \.text
+0+00000e8 R_MIPS_PC64       g1
+0+00000f8 R_MIPS_PC64       \.text
+
+Contents of section \.text:
+ 0000 00000000 0411ffff 00000000 1000ffff  .*
+ 0010 00000000 1000ffff 00000000 0411003f  .*
+ 0020 00000000 04110000 00000000 10000041  .*
+ 0030 00000000 10000000 00000000 3c030000  .*
+ 0040 [26]463000c 3c030000 [26]4630114 2403ffd0  .*
+ 0050 00000000 00000100 00000004 00000028  .*
+ 0060 0000012c ffffffd0 00000000 00000000  .*
+ 0070 00000000 00000100 00000000 00000004  .*
+ 0080 00000000 0000004c 00000000 00000154  .*
+ 0090 ffffffff ffffffd0 10000032 10000033  .*
+ 00a0 3c030000 [26]46300d8 3c030000 [26]46300e8  .*
+ 00b0 000000cc 00000034 00000000 000000cc  .*
+ 00c0 00000000 00000034 00000000 10000032  .*
+ 00d0 10000033 24030034 2403003c 000000cc  .*
+ 00e0 00000034 00000000 00000000 000000cc  .*
+ 00f0 00000000 00000034 00000000 00000000  .*
+Contents of section \.data:
+Contents of section \.reginfo:
+ 0000 80000008 00000000 00000000 00000000  .*
+ 0010 00000000 00000000                    .*
+Contents of section \.(mdebug|pdr):
+#...
+Contents of section \.foo:
+ 0000 00000000 3c030000 [26]4630004 3c030000  .*
+ 0010 [26]463010c 3c030000 [26]4630018 3c030000  .*
+ 0020 [26]463001c 3c030000 [26]4630024 3c030000  .*
+ 0030 [26]463012c 3c030000 [26]4630038 00000000  .*
+ 0040 00000100 00000004 00000044 000000fc  .*
+ 0050 00000050 00000000 00000000 00000000  .*
+ 0060 00000000 00000100 00000000 00000004  .*
+ 0070 00000000 0000006c 00000000 000000fc  .*
+ 0080 00000000 00000080 3c030000 [26]463008c  .*
+ 0090 3c030000 [26]4630194 3c030000 [26]46300a0  .*
+ 00a0 3c030000 [26]46300a4 3c030000 [26]46301ac  .*
+ 00b0 3c030000 [26]46300b8 00000004 00000104  .*
+ 00c0 00000008 000000c4 00000100 000000d0  .*
+ 00d0 00000000 00000004 00000000 00000104  .*
+ 00e0 00000000 00000008 00000000 000000e8  .*
+ 00f0 00000000 00000100 00000000 000000fc  .*
+ 0100 00000000 00000000 00000000 00000000  .*
+
diff --git a/gas/testsuite/gas/mips/tmips16-e.d b/gas/testsuite/gas/mips/tmips16-e.d
new file mode 100644 (file)
index 0000000..a14b461
--- /dev/null
@@ -0,0 +1,42 @@
+#objdump: -rst -mips16
+#name: MIPS16 reloc
+#as: -mips16
+#source: mips16-e.s
+
+# Check MIPS16 reloc processing
+
+.*: +file format elf.*mips.*
+
+SYMBOL TABLE:
+0+0000000 l    d  \.text       0+0000000 
+0+0000000 l    d  \.data       0+0000000 
+0+0000000 l    d  \.bss        0+0000000 
+0+0000002 l       \.text       0+0000000 0xf0 l1
+0+0000004 l       \.text       0+0000000 0xf0 L1.1
+0+0000000 l    d  foo  0+0000000 
+0+0000000 l    d  \.reginfo    0+0000000 
+0+0000000 l    d  \.(mdebug|pdr)       0+0000000 
+0+0000000         \*UND\*      0+0000000 g1
+
+
+RELOCATION RECORDS FOR \[foo\]:
+OFFSET           TYPE              VALUE 
+0+0000000 R_MIPS_32         l1
+0+0000004 R_MIPS_32         l1
+0+0000008 R_MIPS_32         L1.1
+0+000000c R_MIPS_32         L1.1
+0+0000010 R_MIPS_32         g1
+0+0000014 R_MIPS_32         g1
+
+
+Contents of section \.text:
+ 0000 65006500 65006500 65006500 65006500  .*
+Contents of section \.data:
+Contents of section \.reginfo:
+ 0000 00000001 00000000 00000000 00000000  .*
+ 0010 00000000 00000000                    .*
+Contents of section \.(mdebug|pdr):
+#...
+Contents of section foo:
+ 0000 00000000 00000008 00000000 00000003  .*
+ 0010 00000000 00000008 00000000 00000000  .*
diff --git a/gas/testsuite/gas/mips/tmipsel16-e.d b/gas/testsuite/gas/mips/tmipsel16-e.d
new file mode 100644 (file)
index 0000000..5a6bedf
--- /dev/null
@@ -0,0 +1,42 @@
+#objdump: -rst -mips16
+#name: MIPS16 reloc
+#as: -mips16
+#source: mips16-e.s
+
+# Check MIPS16 reloc processing
+
+.*: +file format elf.*mips.*
+
+SYMBOL TABLE:
+0+0000000 l    d  \.text       0+0000000 
+0+0000000 l    d  \.data       0+0000000 
+0+0000000 l    d  \.bss        0+0000000 
+0+0000002 l       \.text       0+0000000 0xf0 l1
+0+0000004 l       \.text       0+0000000 0xf0 L1.1
+0+0000000 l    d  foo  0+0000000 
+0+0000000 l    d  \.reginfo    0+0000000 
+0+0000000 l    d  \.(mdebug|pdr)       0+0000000 
+0+0000000         \*UND\*      0+0000000 g1
+
+
+RELOCATION RECORDS FOR \[foo\]:
+OFFSET           TYPE              VALUE 
+0+0000000 R_MIPS_32         l1
+0+0000004 R_MIPS_32         l1
+0+0000008 R_MIPS_32         L1.1
+0+000000c R_MIPS_32         L1.1
+0+0000010 R_MIPS_32         g1
+0+0000014 R_MIPS_32         g1
+
+
+Contents of section \.text:
+ 0000 00650065 00650065 00650065 00650065  .*
+Contents of section \.data:
+Contents of section \.reginfo:
+ 0000 01000000 00000000 00000000 00000000  .*
+ 0010 00000000 00000000                    .*
+Contents of section \.(mdebug|pdr):
+#...
+Contents of section foo:
+ 0000 00000000 08000000 00000000 03000000  .*
+ 0010 00000000 08000000 00000000 00000000  .*
diff --git a/ld/testsuite/ld-shared/symbolic.dat b/ld/testsuite/ld-shared/symbolic.dat
new file mode 100644 (file)
index 0000000..7146486
--- /dev/null
@@ -0,0 +1,8 @@
+mainvar == 1
+overriddenvar == 2
+shlibvar1 == 3
+shlib_shlibvar1 () == 3
+shlib_shlibvar2 () == 4
+shlib_shlibcall () == 5
+main_called () == 6
+shlib_check () == 1