3 Copyright (C) 1991, 1993 Free Software Foundation, Inc.
5 This file is part of GLD, the Gnu Linker.
7 GLD is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GLD is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GLD; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
24 /* Extra information we hold on sections */
25 typedef struct user_section_struct
27 /* Pointer to the section where this data will go */
28 struct lang_input_statement_struct *file;
29 } section_userdata_type;
32 #define get_userdata(x) ((x)->userdata)
35 #define SHORT_SIZE (2)
39 /* ALIGN macro changed to ALIGN_N to avoid */
40 /* conflict in /usr/include/machine/machparam.h */
41 /* WARNING: If THIS is a 64 bit address and BOUNDARY is a 32 bit int,
42 you must coerce boundary to the same type as THIS.
43 ??? Is there a portable way to avoid this. */
44 #define ALIGN_N(this, boundary) \
45 ((( (this) + ((boundary) -1)) & (~((boundary)-1))))
49 /* 1 => assign space to common symbols even if `relocatable_output'. */
50 boolean force_common_definition;
54 extern args_type command_line;
56 typedef int token_code_type;
60 bfd_size_type specified_data_size;
61 boolean magic_demand_paged;
62 boolean make_executable;
64 /* If true, request BFD to use the traditional format. */
65 boolean traditional_format;
67 /* If true, doing a dynamic link. */
70 boolean build_constructors;
72 /* If true, warn about merging common symbols with others. */
77 boolean text_read_only;
85 extern ld_config_type config;
89 lang_first_phase_enum,
90 lang_allocating_phase_enum,
94 extern boolean had_script;
95 extern boolean force_make_executable;
97 extern int yyparse PARAMS ((void));