From 612d7b83dd2280df7aa167e104fc809983efe16c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 2 May 2003 02:46:36 +0000 Subject: gas/ 2003-05-01 H.J. Lu * config/tc-ia64.h (tc_canonicalize_section_name): New. * config/obj-elf.c (obj_elf_section_name): Call tc_canonicalize_section_name if it is defined. gas/testsuite/ 2003-05-01 H.J. Lu * gas/ia64/ia64.exp: Add secname. * gas/ia64/secname.s: New. Test the trailing '#' in section name. * gas/ia64/secname.d: Likewise. --- gas/testsuite/ChangeLog | 8 ++++++++ gas/testsuite/gas/ia64/ia64.exp | 1 + gas/testsuite/gas/ia64/secname.d | 28 ++++++++++++++++++++++++++++ gas/testsuite/gas/ia64/secname.s | 2 ++ 4 files changed, 39 insertions(+) create mode 100644 gas/testsuite/gas/ia64/secname.d create mode 100644 gas/testsuite/gas/ia64/secname.s (limited to 'gas/testsuite') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 6399b50..348d243 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2003-05-01 H.J. Lu + * gas/ia64/ia64.exp: Add secname. + + * gas/ia64/secname.s: New. Test the trailing '#' in section + name. + * gas/ia64/secname.d: Likewise. + +2003-05-01 H.J. Lu + * gas/ia64/ia64.exp: Add "global". * gas/ia64/global.d: New file. diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp index 60e6a8e..57c0e38 100644 --- a/gas/testsuite/gas/ia64/ia64.exp +++ b/gas/testsuite/gas/ia64/ia64.exp @@ -46,4 +46,5 @@ if [istarget "ia64-*"] then { run_dump_test "align" run_dump_test "order" run_dump_test "global" + run_dump_test "secname" } diff --git a/gas/testsuite/gas/ia64/secname.d b/gas/testsuite/gas/ia64/secname.d new file mode 100644 index 0000000..227a2ea --- /dev/null +++ b/gas/testsuite/gas/ia64/secname.d @@ -0,0 +1,28 @@ +#readelf: -S +#name: ia64 section name + +There are 8 section headers, starting at offset 0x80: + +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\] \.foo PROGBITS 0000000000000000 00000040 + 0000000000000008 0000000000000000 WA 0 0 8 + \[ 5\] \.shstrtab STRTAB 0000000000000000 00000048 + 0000000000000031 0000000000000000 0 0 1 + \[ 6\] \.symtab SYMTAB 0000000000000000 00000280 + 0000000000000078 0000000000000018 7 5 8 + \[ 7\] \.strtab STRTAB 0000000000000000 000002f8 + 0000000000000001 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\) diff --git a/gas/testsuite/gas/ia64/secname.s b/gas/testsuite/gas/ia64/secname.s new file mode 100644 index 0000000..42e21b6 --- /dev/null +++ b/gas/testsuite/gas/ia64/secname.s @@ -0,0 +1,2 @@ + .section .foo#,"aw","progbits" + data8 1234 -- cgit v1.1