aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2006-11-15 15:59:26 +0000
committerJan Beulich <jbeulich@novell.com>2006-11-15 15:59:26 +0000
commitbdf128d65b696b2622a4406b009f5444e5f0550e (patch)
treef3081f6636c7e7b52986042d24e5ce7771ac2ec8 /gas/testsuite
parentb9c3a42a935ad917418dd7629c163f16a2a77e09 (diff)
downloadgdb-bdf128d65b696b2622a4406b009f5444e5f0550e.zip
gdb-bdf128d65b696b2622a4406b009f5444e5f0550e.tar.gz
gdb-bdf128d65b696b2622a4406b009f5444e5f0550e.tar.bz2
gas/
2006-11-15 Jan Beulich <jbeulich@novell.com> PR/3469 * symbols.c (symbol_clone): Mark symbol ending up not on symbol chain by linking it to itself. (resolve_symbol_value): Also check symbol_shadow_p(). (symbol_shadow_p): New. * symbols.h (symbol_shadow_p): Declare. gas/testsuite/ 2006-11-15 Jan Beulich <jbeulich@novell.com> * gas/elf/equ-reloc.[sd]: New. * gas/elf/elf.exp: Run new test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/elf/elf.exp1
-rw-r--r--gas/testsuite/gas/elf/equ-reloc.d13
-rw-r--r--gas/testsuite/gas/elf/equ-reloc.s16
4 files changed, 35 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 43705a3..dce5cb4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-15 Jan Beulich <jbeulich@novell.com>
+
+ * gas/elf/equ-reloc.[sd]: New.
+ * gas/elf/elf.exp: Run new test.
+
2006-11-10 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/merom.d: Use "#pass" instead of "#..." to skip the
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 2acecbf..67ccc5b 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -72,6 +72,7 @@ if { ([istarget "*-*-*elf*"]
{ *c54x*-*-* } { }
default {
run_dump_test redef
+ run_dump_test equ-reloc
}
}
run_dump_test "section0"
diff --git a/gas/testsuite/gas/elf/equ-reloc.d b/gas/testsuite/gas/elf/equ-reloc.d
new file mode 100644
index 0000000..e4e7d47
--- /dev/null
+++ b/gas/testsuite/gas/elf/equ-reloc.d
@@ -0,0 +1,13 @@
+#objdump: -rsj .data
+#name: elf equate relocs
+
+.*: +file format .*
+
+RELOCATION RECORDS FOR \[.*\]:
+OFFSET *TYPE *VALUE
+0*0 [^ ]+ +(\.bss(\+0x0*4)?|y1)
+0*4 [^ ]+ +(\.bss(\+0x0*8)?|y2)
+#...
+Contents of section .data:
+ 0000 0[04]00000[04] 0[08]00000[08].*
+#pass
diff --git a/gas/testsuite/gas/elf/equ-reloc.s b/gas/testsuite/gas/elf/equ-reloc.s
new file mode 100644
index 0000000..efdd0e1
--- /dev/null
+++ b/gas/testsuite/gas/elf/equ-reloc.s
@@ -0,0 +1,16 @@
+ .data
+ .long x1, x2
+
+ .global x1, x2, z2
+
+ .set x1, y1
+ .set x2, y2
+ .set x2, z2
+
+ .section .bss, "aw", %nobits
+x1:
+ .zero 4
+y1:
+ .zero 4
+y2:
+ .zero 4