OSDN Git Service

bfd:
authoriains <iains>
Mon, 19 Dec 2011 15:42:34 +0000 (15:42 +0000)
committeriains <iains>
Mon, 19 Dec 2011 15:42:34 +0000 (15:42 +0000)
commit6c14918cba9a661edaa36a0c53cfd9ca10e37cfa
treea94c2024ad8d3416cfadc8561bb9365bebe2d37a
parent57293b6d118aecccc4d21deeb227072734a8a5a7
bfd:

* mach-o-i386.c (bfd_mach_o_section_type_valid_for_tgt): Define NULL.
* mach-o-target.c (bfd_mach_o_backend_data): Initialize bfd_mach_o_section_type_valid_for_tgt
* mach-o-x86-64.c (bfd_mach_o_section_type_valid_for_x86_64): New.
(bfd_mach_o_section_type_valid_for_tgt): Set to bfd_mach_o_section_type_valid_for_x86_64.
* mach-o.c (bfd_mach_o_section_type_name): Reorder and eliminate dup.
(bfd_mach_o_section_attribute_name): Reorder.
(bfd_mach_o_get_section_type_from_name): If the target has defined a validator for section
types, then use it.
* mach-o.h (bfd_mach_o_get_section_type_from_name): Alter declaration to include the bfd.

gas:

* config/obj-macho.c (obj_mach_o_section): Account for target-dependent section
types.  Improve error handling when wrong section types/attributes are specified.

gas/testsuite:

* gas/mach-o/err-sections-1.s: New.
* gas/mach-o/err-sections-2.s: New.
* gas/mach-o/sections-3.d: New.
* gas/mach-o/sections-3.s: New.
13 files changed:
bfd/ChangeLog
bfd/mach-o-i386.c
bfd/mach-o-target.c
bfd/mach-o-x86-64.c
bfd/mach-o.c
bfd/mach-o.h
gas/ChangeLog
gas/config/obj-macho.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mach-o/err-sections-1.s [new file with mode: 0644]
gas/testsuite/gas/mach-o/err-sections-2.s [new file with mode: 0644]
gas/testsuite/gas/mach-o/sections-3.d [new file with mode: 0644]
gas/testsuite/gas/mach-o/sections-3.s [new file with mode: 0644]