diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-04-01 07:50:24 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-04-01 07:50:24 +0000 |
commit | 8a75718cb7f23c07475908ba2cb05aa06d757b6d (patch) | |
tree | 0cd350665091716ba1b4bc079a8de7757051248d /gas | |
parent | ae8887b54098f26f89fabbd4f0a36abe12a3c4a1 (diff) | |
download | gdb-8a75718cb7f23c07475908ba2cb05aa06d757b6d.zip gdb-8a75718cb7f23c07475908ba2cb05aa06d757b6d.tar.gz gdb-8a75718cb7f23c07475908ba2cb05aa06d757b6d.tar.bz2 |
gas/
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 4 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/bss.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/bss.s | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 1 |
6 files changed, 28 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 47b9f57..4e48da1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 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. (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 80f430e..183e244 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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 (); diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 239bb8c..83910b3 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,4 +1,9 @@ 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 index 0000000..ba74930 --- /dev/null +++ b/gas/testsuite/gas/i386/bss.d @@ -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 index 0000000..f3f1326 --- /dev/null +++ b/gas/testsuite/gas/i386/bss.s @@ -0,0 +1,7 @@ + .data + .section .other, "a", @progbits + .byte 1 + .bss + .skip 1 + .previous + .byte 2 diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 8c45567..310edd1 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -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. |