gas/
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 29 Jul 2003 02:03:33 +0000 (02:03 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 29 Jul 2003 02:03:33 +0000 (02:03 +0000)
2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>

* config/obj-elf.c (obj_elf_section_type): Also accept "note".

gas/testsuite/

2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/elf.exp: Add section3 for note section.

* gas/elf/section3.d: New file.
* gas/elf/section3.s: Likewise.

gas/ChangeLog
gas/config/obj-elf.c
gas/testsuite/ChangeLog
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/section3.d [new file with mode: 0644]
gas/testsuite/gas/elf/section3.s [new file with mode: 0644]

index c5d20f3e7ab826c222ebc62ab525ee10c42339c4..355e3f466abd8d859bbbcb6d281d091bd5af59ce 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/obj-elf.c (obj_elf_section_type): Also accept "note".
+
 2003-07-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * read.c (s_space): Don't warn about .space 0.
index 86879653e230cb606ee124b6ffa081f11cb42e74..7a2ad3467141b51235946ecc5db1de9175b92ca0 100644 (file)
@@ -844,6 +844,8 @@ obj_elf_section_type (str, len)
     return SHT_PROGBITS;
   if (len == 6 && strncmp (str, "nobits", 6) == 0)
     return SHT_NOBITS;
+  if (len == 4 && strncmp (str, "note", 4) == 0)
+    return SHT_NOTE;
 
 #ifdef md_elf_section_type
   {
index 46ca5dc9fd7896a2dbe48cf7511b9e67d0111f6c..1a0af9060b63b4682b0f9149ccc90db3439a73a6 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/elf/elf.exp: Add section3 for note section.
+
+       * gas/elf/section3.d: New file.
+       * gas/elf/section3.s: Likewise.
+
 2003-07-26  Alan Modra  <amodra@bigpond.net.au>
 
        * gas/ppc/altivec.d: Update.
index f9777a135d5678b9441996972b75916e20e5dd71..8edd2de0b5fb0e561a797b5d0de70d2d90e858c6 100644 (file)
@@ -54,6 +54,7 @@ if { ([istarget "*-*-elf*"]
     run_dump_test "section0" 
     run_dump_test "section1" 
     run_list_test "section2" "$target_machine" "-al" ""
+    run_dump_test "section3" 
     run_dump_test "symver" 
     run_list_test "type" "" "" "| grep \"1 \\\[FONT\\\]\""
 }
diff --git a/gas/testsuite/gas/elf/section3.d b/gas/testsuite/gas/elf/section3.d
new file mode 100644 (file)
index 0000000..4a201c3
--- /dev/null
@@ -0,0 +1,6 @@
+#readelf: -S
+#name: note section
+
+#...
+[      ]*\[.*\][       ]+\.foo[        ]+NOTE.*
+#pass
diff --git a/gas/testsuite/gas/elf/section3.s b/gas/testsuite/gas/elf/section3.s
new file mode 100644 (file)
index 0000000..dd9a79e
--- /dev/null
@@ -0,0 +1,2 @@
+       .section .foo,"","note"
+       .byte 0,0,0,0