OSDN Git Service

adjust mach-o default GAS sections.
authoriains <iains>
Thu, 29 Dec 2011 10:53:09 +0000 (10:53 +0000)
committeriains <iains>
Thu, 29 Dec 2011 10:53:09 +0000 (10:53 +0000)
commit922863123879dfabc8b71a3fd2fa93ff1fb5a2d5
treeb423a91df0406eb9dbbe6b69f3da0af17b4f70ec
parent05bc18d3fca7bfbcc435b68e7b2cde0200411d02
adjust mach-o default GAS sections.

gas:

* as.c (perform_an_assembly_pass): Do not create text, data and bss
sections for MACH-O.  Do not switch to the text section.
* config/obj-macho.c (obj_mach_o_segT_from_bfd_name): Forward decl.
(mach_o_begin): Startup with only text section unless suppressed.
* config/obj-macho.h (obj_begin): define to mach_o_begin ().

gas/testsuite:

* gas/mach-o/sections-1.d: Amend to recognize that bss is not emitted
by default.
* gas/mach-o/sections-2.d: New.
gas/ChangeLog
gas/as.c
gas/config/obj-macho.c
gas/config/obj-macho.h
gas/testsuite/ChangeLog
gas/testsuite/gas/mach-o/sections-1.d
gas/testsuite/gas/mach-o/sections-2.d [new file with mode: 0644]