gas/
authorJan Beulich <jbeulich@novell.com>
Fri, 1 Apr 2005 07:50:24 +0000 (07:50 +0000)
committerJan Beulich <jbeulich@novell.com>
Fri, 1 Apr 2005 07:50:24 +0000 (07:50 +0000)
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.

gas/testsuite/
2005-04-01  Jan Beulich  <jbeulich@novell.com>

* gas/i386/bss.[sd]: New.
* gas/i386/i386.exp: Run new test.

gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/bss.d [new file with mode: 0644]
gas/testsuite/gas/i386/bss.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp

index 47b9f573ea14380bea7a247aa4e0ef654da6f7d9..4e48da1c0a1163bcc73f83d830549816dd68ce9d 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-01  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook.
+
 2005-04-01  Jan Beulich  <jbeulich@novell.com>
 
        * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
index 80f430e4b622d060b4d1708fca85409ce6d31a9d..183e244a25f63e010c83c0f8efcc73cc28d6ac1f 100644 (file)
@@ -5307,6 +5307,10 @@ s_bss (ignore)
 {
   int temp;
 
+#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
+  if (IS_ELF)
+    obj_elf_section_change_hook ();
+#endif
   temp = get_absolute_expression ();
   subseg_set (bss_section, (subsegT) temp);
   demand_empty_rest_of_line ();
index 239bb8c6f649483b0d70082646d25e24db951876..83910b3fbed87ef30de1d5632e206f178b7d86f0 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-01  Jan Beulich  <jbeulich@novell.com>
+
+       * gas/i386/bss.[sd]: New.
+       * gas/i386/i386.exp: Run new test.
+
 2005-04-01  Jan Beulich  <jbeulich@novell.com>
        * gas/i386/x86-64-pcrel.[sd]: New.
        * gas/i386/i386.exp: Run new test.
diff --git a/gas/testsuite/gas/i386/bss.d b/gas/testsuite/gas/i386/bss.d
new file mode 100644 (file)
index 0000000..ba74930
--- /dev/null
@@ -0,0 +1,7 @@
+#objdump: -s
+#name: i386 .bss
+
+.*: +file format .*
+
+Contents of section \.other:
+ 0000 0102 .*
diff --git a/gas/testsuite/gas/i386/bss.s b/gas/testsuite/gas/i386/bss.s
new file mode 100644 (file)
index 0000000..f3f1326
--- /dev/null
@@ -0,0 +1,7 @@
+ .data
+ .section .other, "a", @progbits
+ .byte 1
+ .bss
+ .skip 1
+ .previous
+ .byte 2
index 8c455677dfd3b397078f5bce1a00a0b14b79ba57..310edd17eb6f2f58e63b34bcdccdcc9f2b3c8f56 100644 (file)
@@ -99,6 +99,7 @@ if [expr ([istarget "i*86-*-*"] ||  [istarget "x86_64-*-*"]) && [gas_32_check]]
        run_dump_test "tlsd"
        run_dump_test "tlspic"
        run_dump_test "tlsnopic"
+       run_dump_test "bss"
     }
 
     # This is a PE specific test.