Add support for DragonFlyBSD target.
[binutils.git] / gas / config / obj-macho.c
blobee19c4aa115b8ba469672fde34e2bb748e7802f8
1 /* Mach-O object file format
2 Copyright 2009 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
19 02110-1301, USA. */
21 #define OBJ_HEADER "obj-macho.h"
23 #include "as.h"
24 #include "mach-o.h"
26 static void
27 obj_mach_o_weak (int ignore ATTRIBUTE_UNUSED)
29 char *name;
30 int c;
31 symbolS *symbolP;
35 /* Get symbol name. */
36 name = input_line_pointer;
37 c = get_symbol_end ();
38 symbolP = symbol_find_or_make (name);
39 S_SET_WEAK (symbolP);
40 *input_line_pointer = c;
41 SKIP_WHITESPACE ();
43 if (c != ',')
44 break;
45 input_line_pointer++;
46 SKIP_WHITESPACE ();
48 while (*input_line_pointer != '\n');
49 demand_empty_rest_of_line ();
52 const pseudo_typeS mach_o_pseudo_table[] =
54 {"weak", obj_mach_o_weak, 0},
56 {NULL, NULL, 0}