bfd
authorTristan Gingold <gingold@adacore.com>
Wed, 18 May 2011 07:58:36 +0000 (07:58 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 18 May 2011 07:58:36 +0000 (07:58 +0000)
commit85645aed8531ad9723f328e2ebdd66272acde0e2
tree929025f7b4866d74840afc4c42c8abe35c533bf5
parentcef6e90a3e87bbf7625f440459705639b92d4d83
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.
13 files changed:
bfd/ChangeLog
bfd/coff-rs6000.c
bfd/coffcode.h
bfd/libxcoff.h
gas/ChangeLog
gas/config/obj-coff.c
gas/config/tc-ppc.c
gas/config/tc-ppc.h
gas/testsuite/ChangeLog
gas/testsuite/gas/ppc/aix.exp
gas/testsuite/gas/ppc/xcoff-dwsect-1-32.d [new file with mode: 0644]
gas/testsuite/gas/ppc/xcoff-dwsect-1-64.d [new file with mode: 0644]
gas/testsuite/gas/ppc/xcoff-dwsect-1.s [new file with mode: 0644]