1 /* Mach-O object file format for gas, the assembler.
2 Copyright 2009, 2011 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 3,
9 or (at your option) any later version.
11 GAS is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
14 the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
24 /* Tag to validate Mach-O object file format processing */
27 #include "bfd/mach-o.h"
31 #define OUTPUT_FLAVOR bfd_target_mach_o_flavour
33 /* All our align expressions are power of two. */
34 #define USE_ALIGN_PTWO
36 /* Common symbols can carry alignment information. */
38 #define S_SET_ALIGN(S,V) do {\
39 bfd_mach_o_asymbol *s = (bfd_mach_o_asymbol *) symbol_get_bfdsym (S);\
40 s->n_desc = (s->n_desc & 0xf0ff) | (((V) & 0x0f) << 8);\
44 extern const pseudo_typeS mach_o_pseudo_table
[];
46 #ifndef obj_pop_insert
47 #define obj_pop_insert() pop_insert (mach_o_pseudo_table)
50 #define obj_sec_sym_ok_for_reloc(SEC) 1
52 #define obj_read_begin_hook() {;}
53 #define obj_symbol_new_hook(s) {;}
55 #define EMIT_SECTION_SYMBOLS 0
57 #endif /* _OBJ_MACH_O_H */