diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-05-18 07:58:36 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-05-18 07:58:36 +0000 |
commit | 85645aed8531ad9723f328e2ebdd66272acde0e2 (patch) | |
tree | 929025f7b4866d74840afc4c42c8abe35c533bf5 /gas/testsuite | |
parent | cef6e90a3e87bbf7625f440459705639b92d4d83 (diff) | |
download | gdb-85645aed8531ad9723f328e2ebdd66272acde0e2.zip gdb-85645aed8531ad9723f328e2ebdd66272acde0e2.tar.gz gdb-85645aed8531ad9723f328e2ebdd66272acde0e2.tar.bz2 |
bfd
2011-05-18 Tristan Gingold <gingold@adacore.com>
* libxcoff.h (struct xcoff_dwsect_name): New type.
(XCOFF_DWSECT_NBR_NAMES): New macro.
(xcoff_dwsect_names): Declare.
* coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
(styp_to_sec_flags): Ditto.
(coff_new_section_hook): Ditto.
(coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
* coff-rs6000.c (xcoff_dwsect_name): New variable.
gas
2011-05-18 Tristan Gingold <gingold@adacore.com>
* config/tc-ppc.h (ppc_tc_sy): Reorder fields.
Put size into an union with dw.
(OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust.
(ppc_xcoff_end): Declare.
(md_end): Define.
* config/tc-ppc.c: Add includes for xcoff.
(ppc_dwsect): New function.
(md_pseudo_table): Add dwsect.
(struct dw_subsection): New.
(dw_sections): New.
(ppc_change_debug_section): New function.
(ppc_xcoff_end): Ditto.
(ppc_function): Adjust for ppc_tc_sy.
(ppc_symbol_new_hook): Ditto.
(ppc_frob_symbol): Ditto.
(ppc_frob_section): Do not set vma for debug sections.
(ppc_fix_adjustable): Return true for debug sections.
* config/obj-coff.c: Add includes for xcoff.
(coff_frob_section): Handle dwarf section.
gas/testsuite
2011-05-18 Tristan Gingold <gingold@adacore.com>
* gas/ppc/xcoff-dwsect-1-32.d: New test.
* gas/ppc/xcoff-dwsect-1-64.d: Ditto.
* gas/ppc/xcoff-dwsect-1.s: New file.
* gas/ppc/aix.exp (do_align_test): Add tests.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/aix.exp | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/xcoff-dwsect-1-32.d | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/xcoff-dwsect-1-64.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/ppc/xcoff-dwsect-1.s | 8 |
5 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 3bc3582..499bb04 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2011-05-18 Tristan Gingold <gingold@adacore.com> + + * gas/ppc/xcoff-dwsect-1-32.d: New test. + * gas/ppc/xcoff-dwsect-1-64.d: Ditto. + * gas/ppc/xcoff-dwsect-1.s: New file. + * gas/ppc/aix.exp (do_align_test): Add tests. + 2011-05-16 Hans-Peter Nilsson <hp@axis.com> * gas/cris/rd-brokw-pic-1.d, gas/cris/rd-brokw-pic-2.d, diff --git a/gas/testsuite/gas/ppc/aix.exp b/gas/testsuite/gas/ppc/aix.exp index 917f0d9..6dcfc4e 100644 --- a/gas/testsuite/gas/ppc/aix.exp +++ b/gas/testsuite/gas/ppc/aix.exp @@ -67,4 +67,7 @@ if [istarget powerpc-ibm-aix*] then { run_dump_test "xcoff-branch-1-64" run_list_test "xcoff-ref-1" + + run_dump_test "xcoff-dwsect-1-32" + run_dump_test "xcoff-dwsect-1-64" } diff --git a/gas/testsuite/gas/ppc/xcoff-dwsect-1-32.d b/gas/testsuite/gas/ppc/xcoff-dwsect-1-32.d new file mode 100644 index 0000000..a03cf42 --- /dev/null +++ b/gas/testsuite/gas/ppc/xcoff-dwsect-1-32.d @@ -0,0 +1,9 @@ +#as: -a32 +#source: xcoff-dwsect-1.s +#objdump: -j .dwinfo -s +#name: XCOFF dwsect test 1 (32-bit) + +dump.o: file format aixcoff-rs6000 + +Contents of section \.dwinfo: + 0000 00000006 00020001 00040000 00020003 ................ diff --git a/gas/testsuite/gas/ppc/xcoff-dwsect-1-64.d b/gas/testsuite/gas/ppc/xcoff-dwsect-1-64.d new file mode 100644 index 0000000..e415a12 --- /dev/null +++ b/gas/testsuite/gas/ppc/xcoff-dwsect-1-64.d @@ -0,0 +1,10 @@ +#as: -a64 +#source: xcoff-dwsect-1.s +#objdump: -j .dwinfo -s +#name: XCOFF dwsect test 1 (64-bit) + +dump.o: file format aix.*coff64-rs6000 + +Contents of section \.dwinfo: + 0000 ffffffff 00000000 00000006 00020001 ................ + 0010 0004ffff ffff0000 00000000 00020003 ................ diff --git a/gas/testsuite/gas/ppc/xcoff-dwsect-1.s b/gas/testsuite/gas/ppc/xcoff-dwsect-1.s new file mode 100644 index 0000000..493f212 --- /dev/null +++ b/gas/testsuite/gas/ppc/xcoff-dwsect-1.s @@ -0,0 +1,8 @@ + .dwsect 0x10000,Ldwinfo_0 + .short 2 + .dwsect 0x10000,Ldwinfo_1 + .short 3 + .dwsect 0x10000,Ldwinfo_0 + .short 1 + .short 4 + |