gas/
[deliverable/binutils-gdb.git] / gas / config / obj-macho.c
CommitLineData
e57f8c65
TG
1/* Mach-O object file format
2 Copyright 2009 Free Software Foundation, Inc.
3
4 This file is part of GAS, the GNU Assembler.
5
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.
10
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.
15
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. */
20
21#define OBJ_HEADER "obj-macho.h"
22
23#include "as.h"
24#include "mach-o.h"
25
26static void
27obj_mach_o_weak (int ignore ATTRIBUTE_UNUSED)
28{
29 char *name;
30 int c;
31 symbolS *symbolP;
32
33 do
34 {
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 ();
42
43 if (c != ',')
44 break;
45 input_line_pointer++;
46 SKIP_WHITESPACE ();
47 }
48 while (*input_line_pointer != '\n');
49 demand_empty_rest_of_line ();
50}
51
52const pseudo_typeS mach_o_pseudo_table[] =
53{
54 {"weak", obj_mach_o_weak, 0},
55
56 {NULL, NULL, 0}
57};
This page took 0.033418 seconds and 4 git commands to generate.