diff options
author | Iain Sandoe <iain@codesourcery.com> | 2011-12-29 10:53:10 +0000 |
---|---|---|
committer | Iain Sandoe <iain@codesourcery.com> | 2011-12-29 10:53:10 +0000 |
commit | bcf0aac6f660e4ee754a93276a8601ab1e1bb42c (patch) | |
tree | d9073253ba036586d92e44bf9e8c7c98661be7cc /gas/config/obj-macho.h | |
parent | 3362e0d9fb6c0e34a2875295c34ca3f73cdf8892 (diff) | |
download | gdb-bcf0aac6f660e4ee754a93276a8601ab1e1bb42c.zip gdb-bcf0aac6f660e4ee754a93276a8601ab1e1bb42c.tar.gz gdb-bcf0aac6f660e4ee754a93276a8601ab1e1bb42c.tar.bz2 |
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.
Diffstat (limited to 'gas/config/obj-macho.h')
-rw-r--r-- | gas/config/obj-macho.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/obj-macho.h b/gas/config/obj-macho.h index 94c1cde..d9b0b33 100644 --- a/gas/config/obj-macho.h +++ b/gas/config/obj-macho.h @@ -30,6 +30,10 @@ #define OUTPUT_FLAVOR bfd_target_mach_o_flavour +/* We want to control how the sections are pre-defined on startup. */ +#define obj_begin() mach_o_begin () +extern void mach_o_begin (void); + /* All our align expressions are power of two. */ #define USE_ALIGN_PTWO |