aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-05-07 19:31:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-05-07 19:31:10 +0000
commit35f5df7fe8004e03e2d9ae4b8de5186562e8caca (patch)
tree8e4b6de60d7864dab094433f5ed39afd3b81edd0 /gas/testsuite
parentf6684c317073868d91f0659501fe08215784ab9d (diff)
downloadgdb-35f5df7fe8004e03e2d9ae4b8de5186562e8caca.zip
gdb-35f5df7fe8004e03e2d9ae4b8de5186562e8caca.tar.gz
gdb-35f5df7fe8004e03e2d9ae4b8de5186562e8caca.tar.bz2
gas/
2003-05-07 H.J. Lu <hongjiu.lu@intel.com> * config/tc-ia64.c (alias_hash): New. (alias_name_hash): New. (secalias_hash): New. (secalias_name_hash): New. (md_pseudo_table): Add "secalias". (md_begin): Initialize alias_hash, alias_name_hash, secalias_hash and secalias_name_hash. (struct alias): New. (dot_alias): Implement .alias and .secalias directives. (do_alias): New. (ia64_adjust_symtab): New. (do_secalias): New. (ia64_frob_file): New. * config/tc-ia64.h (ia64_adjust_symtab): New. (tc_adjust_symtab): Defined. (ia64_frob_file): New. (tc_frob_file): Defined. gas/testsuite/ 2003-05-07 H.J. Lu <hongjiu.lu@intel.com> * gas/ia64/ia64.exp: Add alias. * gas/ia64/alias.s: New. * gas/ia64/alias.d: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/ia64/alias.d37
-rw-r--r--gas/testsuite/gas/ia64/alias.s11
-rw-r--r--gas/testsuite/gas/ia64/ia64.exp1
4 files changed, 56 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index da94a1d..8baa6cd 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/ia64/ia64.exp: Add alias.
+
+ * gas/ia64/alias.s: New.
+ * gas/ia64/alias.d: Likewise.
+
2003-05-06 Alexandre Oliva <aoliva@redhat.com>
* gas/mips/abs.d, gas/mips/add.d, gas/mips/and.d,
diff --git a/gas/testsuite/gas/ia64/alias.d b/gas/testsuite/gas/ia64/alias.d
new file mode 100644
index 0000000..c943b3a
--- /dev/null
+++ b/gas/testsuite/gas/ia64/alias.d
@@ -0,0 +1,37 @@
+#readelf: -Ss
+#name: ia64 alias and secalias
+
+There are 8 section headers, starting at offset 0x78:
+
+Section Headers:
+ \[Nr\] Name Type Address Offset
+ Size EntSize Flags Link Info Align
+ \[ 0\] NULL 0000000000000000 00000000
+ 0000000000000000 0000000000000000 0 0 0
+ \[ 1\] \.text PROGBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 AX 0 0 16
+ \[ 2\] \.data PROGBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 WA 0 0 1
+ \[ 3\] \.bss NOBITS 0000000000000000 00000040
+ 0000000000000000 0000000000000000 WA 0 0 1
+ \[ 4\] 1234 PROGBITS 0000000000000000 00000040
+ 0000000000000005 0000000000000000 WA 0 0 1
+ \[ 5\] \.shstrtab STRTAB 0000000000000000 00000045
+ 0000000000000031 0000000000000000 0 0 1
+ \[ 6\] \.symtab SYMTAB 0000000000000000 00000278
+ 0000000000000090 0000000000000018 7 6 8
+ \[ 7\] \.strtab STRTAB 0000000000000000 00000308
+ 0000000000000006 0000000000000000 0 0 1
+Key to Flags:
+ W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
+ I \(info\), L \(link order\), G \(group\), x \(unknown\)
+ O \(extra OS processing required\) o \(OS specific\), p \(processor specific\)
+
+Symbol table '\.symtab' contains 6 entries:
+ Num: Value Size Type Bind Vis Ndx Name
+ 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
+ 1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
+ 2: 0000000000000000 0 SECTION LOCAL DEFAULT 2
+ 3: 0000000000000000 0 SECTION LOCAL DEFAULT 3
+ 4: 0000000000000000 0 SECTION LOCAL DEFAULT 4
+ 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT 4 "@D"
diff --git a/gas/testsuite/gas/ia64/alias.s b/gas/testsuite/gas/ia64/alias.s
new file mode 100644
index 0000000..9ac1801
--- /dev/null
+++ b/gas/testsuite/gas/ia64/alias.s
@@ -0,0 +1,11 @@
+ .section .foo,"aw","progbits"
+ .secalias .foo,"1234"
+ .secalias .foo,"1234"
+ .alias foo, "\"\80\84\""
+ .alias foo, "\"\80\84\""
+foo:
+ stringz "\"\80\84\""
+ .secalias .foo,"1234"
+ .secalias .foo,"1234"
+ .alias foo, "\"\80\84\""
+ .alias foo, "\"\80\84\""
diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp
index 4597ca1..967de12 100644
--- a/gas/testsuite/gas/ia64/ia64.exp
+++ b/gas/testsuite/gas/ia64/ia64.exp
@@ -48,4 +48,5 @@ if [istarget "ia64-*"] then {
run_dump_test "global"
run_dump_test "secname"
run_dump_test "unwind"
+ run_dump_test "alias"
}