]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ldlang.h
* gdb.threads/current-lwp-dead.exp: Only run this on Linux.
[thirdparty/binutils-gdb.git] / ld / ldlang.h
CommitLineData
252b5132 1/* ldlang.h - linker command language support
a2b64bed 2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
bde18da4 3 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
aa8804e4 4 Free Software Foundation, Inc.
5cc18311 5
f96b4a7b 6 This file is part of the GNU Binutils.
5cc18311 7
f96b4a7b 8 This program is free software; you can redistribute it and/or modify
252b5132 9 it under the terms of the GNU General Public License as published by
f96b4a7b
NC
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
5cc18311 12
f96b4a7b 13 This program is distributed in the hope that it will be useful,
252b5132
RH
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
5cc18311 17
252b5132 18 You should have received a copy of the GNU General Public License
f96b4a7b
NC
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
252b5132
RH
22
23#ifndef LDLANG_H
24#define LDLANG_H
25
a747ee4d
NC
26#define DEFAULT_MEMORY_REGION "*default*"
27
6bdafbeb
NC
28typedef enum
29{
252b5132
RH
30 lang_input_file_is_l_enum,
31 lang_input_file_is_symbols_only_enum,
32 lang_input_file_is_marker_enum,
33 lang_input_file_is_fake_enum,
34 lang_input_file_is_search_file_enum,
35 lang_input_file_is_file_enum
36} lang_input_file_enum_type;
37
6bdafbeb
NC
38struct _fill_type
39{
2c382fb6
AM
40 size_t size;
41 unsigned char data[1];
42};
89cdebba 43
6bdafbeb
NC
44typedef struct statement_list
45{
4a93e180
NC
46 union lang_statement_union * head;
47 union lang_statement_union ** tail;
252b5132
RH
48} lang_statement_list_type;
49
4a93e180
NC
50typedef struct memory_region_name_struct
51{
52 const char * name;
53 struct memory_region_name_struct * next;
54} lang_memory_region_name;
55
6bdafbeb
NC
56typedef struct memory_region_struct
57{
4a93e180 58 lang_memory_region_name name_list;
252b5132
RH
59 struct memory_region_struct *next;
60 bfd_vma origin;
61 bfd_size_type length;
62 bfd_vma current;
66e28d60 63 union lang_statement_union *last_os;
252b5132
RH
64 flagword flags;
65 flagword not_flags;
b34976b6 66 bfd_boolean had_full_message;
89cdebba
KH
67} lang_memory_region_type;
68
6bdafbeb
NC
69typedef struct lang_statement_header_struct
70{
89cdebba 71 union lang_statement_union *next;
6bdafbeb
NC
72 enum statement_enum
73 {
89cdebba
KH
74 lang_output_section_statement_enum,
75 lang_assignment_statement_enum,
76 lang_input_statement_enum,
77 lang_address_statement_enum,
78 lang_wild_statement_enum,
79 lang_input_section_enum,
80 lang_object_symbols_statement_enum,
81 lang_fill_statement_enum,
82 lang_data_statement_enum,
83 lang_reloc_statement_enum,
84 lang_target_statement_enum,
85 lang_output_statement_enum,
86 lang_padding_statement_enum,
87 lang_group_statement_enum,
53d25da6 88 lang_insert_statement_enum,
89cdebba
KH
89 lang_constructors_statement_enum
90 } type;
252b5132
RH
91} lang_statement_header_type;
92
6bdafbeb
NC
93typedef struct
94{
252b5132
RH
95 lang_statement_header_type header;
96 union etree_union *exp;
97} lang_assignment_statement_type;
98
6bdafbeb
NC
99typedef struct lang_target_statement_struct
100{
252b5132
RH
101 lang_statement_header_type header;
102 const char *target;
103} lang_target_statement_type;
104
6bdafbeb
NC
105typedef struct lang_output_statement_struct
106{
252b5132
RH
107 lang_statement_header_type header;
108 const char *name;
109} lang_output_statement_type;
110
111/* Section types specified in a linker script. */
112
6bdafbeb
NC
113enum section_type
114{
252b5132 115 normal_section,
152d792f 116 overlay_section,
252b5132 117 noload_section,
02a38f92 118 noalloc_section
252b5132
RH
119};
120
6bdafbeb
NC
121/* This structure holds a list of program headers describing
122 segments in which this section should be placed. */
252b5132 123
6bdafbeb
NC
124typedef struct lang_output_section_phdr_list
125{
252b5132
RH
126 struct lang_output_section_phdr_list *next;
127 const char *name;
b34976b6 128 bfd_boolean used;
6bdafbeb 129} lang_output_section_phdr_list;
252b5132 130
6bdafbeb
NC
131typedef struct lang_output_section_statement_struct
132{
252b5132 133 lang_statement_header_type header;
252b5132 134 lang_statement_list_type children;
afd7a018 135 struct lang_output_section_statement_struct *next;
218868ba 136 struct lang_output_section_statement_struct *prev;
252b5132 137 const char *name;
252b5132 138 asection *bfd_section;
6bdafbeb
NC
139 lang_memory_region_type *region;
140 lang_memory_region_type *lma_region;
2c382fb6 141 fill_type *fill;
7fabd029 142 union etree_union *addr_tree;
252b5132
RH
143 union etree_union *load_base;
144
9f88b410
RS
145 /* If non-null, an expression to evaluate after setting the section's
146 size. The expression is evaluated inside REGION (above) with '.'
147 set to the end of the section. Used in the last overlay section
148 to move '.' past all the overlaid sections. */
149 union etree_union *update_dot_tree;
150
6bdafbeb 151 lang_output_section_phdr_list *phdrs;
7fabd029
AM
152
153 unsigned int block_value;
154 int subsection_alignment; /* Alignment of components. */
155 int section_alignment; /* Alignment of start of section. */
156 int constraint;
157 flagword flags;
158 enum section_type sectype;
cde9e0be
AM
159 unsigned int processed_vma : 1;
160 unsigned int processed_lma : 1;
7fabd029 161 unsigned int all_input_readonly : 1;
49c13adb 162 /* If this section should be ignored. */
7fabd029 163 unsigned int ignored : 1;
49c13adb
L
164 /* If there is a symbol relative to this section. */
165 unsigned int section_relative_symbol : 1;
252b5132
RH
166} lang_output_section_statement_type;
167
6bdafbeb
NC
168typedef struct
169{
252b5132
RH
170 lang_statement_header_type header;
171} lang_common_statement_type;
172
6bdafbeb
NC
173typedef struct
174{
252b5132
RH
175 lang_statement_header_type header;
176} lang_object_symbols_statement_type;
177
6bdafbeb
NC
178typedef struct
179{
252b5132 180 lang_statement_header_type header;
2c382fb6 181 fill_type *fill;
252b5132
RH
182 int size;
183 asection *output_section;
184} lang_fill_statement_type;
185
6bdafbeb
NC
186typedef struct
187{
252b5132
RH
188 lang_statement_header_type header;
189 unsigned int type;
89cdebba 190 union etree_union *exp;
252b5132
RH
191 bfd_vma value;
192 asection *output_section;
7fabd029 193 bfd_vma output_offset;
252b5132
RH
194} lang_data_statement_type;
195
196/* Generate a reloc in the output file. */
197
6bdafbeb
NC
198typedef struct
199{
252b5132
RH
200 lang_statement_header_type header;
201
202 /* Reloc to generate. */
203 bfd_reloc_code_real_type reloc;
204
205 /* Reloc howto structure. */
206 reloc_howto_type *howto;
207
6bdafbeb
NC
208 /* Section to generate reloc against.
209 Exactly one of section and name must be NULL. */
252b5132
RH
210 asection *section;
211
6bdafbeb
NC
212 /* Name of symbol to generate reloc against.
213 Exactly one of section and name must be NULL. */
252b5132
RH
214 const char *name;
215
216 /* Expression for addend. */
217 union etree_union *addend_exp;
218
219 /* Resolved addend. */
220 bfd_vma addend_value;
221
222 /* Output section where reloc should be performed. */
223 asection *output_section;
224
7fabd029
AM
225 /* Offset within output section. */
226 bfd_vma output_offset;
252b5132
RH
227} lang_reloc_statement_type;
228
6bdafbeb
NC
229typedef struct lang_input_statement_struct
230{
252b5132
RH
231 lang_statement_header_type header;
232 /* Name of this file. */
233 const char *filename;
6bdafbeb
NC
234 /* Name to use for the symbol giving address of text start.
235 Usually the same as filename, but for a file spec'd with
236 -l this is the -l switch itself rather than the filename. */
252b5132 237 const char *local_sym_name;
5cc18311 238
252b5132 239 bfd *the_bfd;
5cc18311 240
252b5132
RH
241 /* Point to the next file - whatever it is, wanders up and down
242 archives */
89cdebba 243 union lang_statement_union *next;
6bdafbeb
NC
244
245 /* Point to the next file, but skips archive contents. */
89cdebba 246 union lang_statement_union *next_real_file;
5cc18311 247
409d7240
AM
248 const char *target;
249
409d7240 250 unsigned int is_archive : 1;
5cc18311 251
252b5132 252 /* 1 means search a set of directories for this file. */
409d7240 253 unsigned int search_dirs_flag : 1;
5cc18311 254
e3f2db7f
AO
255 /* 1 means this was found in a search directory marked as sysrooted,
256 if search_dirs_flag is false, otherwise, that it should be
257 searched in ld_sysroot before any other location, as long as it
258 starts with a slash. */
409d7240 259 unsigned int sysrooted : 1;
e3f2db7f 260
252b5132
RH
261 /* 1 means this is base file of incremental load.
262 Do not load this file's text or data.
5cc18311 263 Also default text_start to after this file's bss. */
409d7240 264 unsigned int just_syms_flag : 1;
252b5132
RH
265
266 /* Whether to search for this entry as a dynamic archive. */
409d7240 267 unsigned int dynamic : 1;
252b5132 268
e56f61be
L
269 /* Whether DT_NEEDED tags should be added for dynamic libraries in
270 DT_NEEDED tags from this entry. */
409d7240 271 unsigned int add_needed : 1;
e56f61be 272
4a43e768
AM
273 /* Whether this entry should cause a DT_NEEDED tag only when
274 satisfying references from regular files, or always. */
409d7240 275 unsigned int as_needed : 1;
4a43e768 276
252b5132 277 /* Whether to include the entire contents of an archive. */
409d7240 278 unsigned int whole_archive : 1;
252b5132 279
409d7240 280 unsigned int loaded : 1;
5cc18311 281
409d7240 282 unsigned int real : 1;
252b5132
RH
283} lang_input_statement_type;
284
6bdafbeb
NC
285typedef struct
286{
252b5132
RH
287 lang_statement_header_type header;
288 asection *section;
5cc18311 289} lang_input_section_type;
252b5132 290
72223188
JJ
291typedef struct lang_wild_statement_struct lang_wild_statement_type;
292
293typedef void (*callback_t) (lang_wild_statement_type *, struct wildcard_list *,
294 asection *, lang_input_statement_type *, void *);
295
296typedef void (*walk_wild_section_handler_t) (lang_wild_statement_type *,
297 lang_input_statement_type *,
298 callback_t callback,
299 void *data);
300
390fbbf1
AM
301typedef bfd_boolean (*lang_match_sec_type_func) (bfd *, const asection *,
302 bfd *, const asection *);
303
e6f2cbf5
L
304/* Binary search tree structure to efficiently sort sections by
305 name. */
306typedef struct lang_section_bst
307{
308 asection *section;
309 struct lang_section_bst *left;
310 struct lang_section_bst *right;
311} lang_section_bst_type;
312
72223188 313struct lang_wild_statement_struct
6bdafbeb 314{
252b5132 315 lang_statement_header_type header;
252b5132 316 const char *filename;
b34976b6 317 bfd_boolean filenames_sorted;
b6bf44ba 318 struct wildcard_list *section_list;
b34976b6 319 bfd_boolean keep_sections;
252b5132 320 lang_statement_list_type children;
72223188
JJ
321
322 walk_wild_section_handler_t walk_wild_section_handler;
323 struct wildcard_list *handler_data[4];
e6f2cbf5 324 lang_section_bst_type *tree;
72223188 325};
252b5132 326
6bdafbeb
NC
327typedef struct lang_address_statement_struct
328{
252b5132 329 lang_statement_header_type header;
89cdebba
KH
330 const char *section_name;
331 union etree_union *address;
ba916c8a 332 const segment_type *segment;
252b5132
RH
333} lang_address_statement_type;
334
6bdafbeb
NC
335typedef struct
336{
252b5132
RH
337 lang_statement_header_type header;
338 bfd_vma output_offset;
339 size_t size;
340 asection *output_section;
2c382fb6 341 fill_type *fill;
252b5132
RH
342} lang_padding_statement_type;
343
344/* A group statement collects a set of libraries together. The
345 libraries are searched multiple times, until no new undefined
346 symbols are found. The effect is to search a group of libraries as
347 though they were a single library. */
348
6bdafbeb
NC
349typedef struct
350{
252b5132
RH
351 lang_statement_header_type header;
352 lang_statement_list_type children;
353} lang_group_statement_type;
354
53d25da6
AM
355typedef struct
356{
357 lang_statement_header_type header;
358 const char *where;
359 bfd_boolean is_before;
360} lang_insert_statement_type;
361
6bdafbeb
NC
362typedef union lang_statement_union
363{
252b5132 364 lang_statement_header_type header;
252b5132
RH
365 lang_wild_statement_type wild_statement;
366 lang_data_statement_type data_statement;
367 lang_reloc_statement_type reloc_statement;
368 lang_address_statement_type address_statement;
369 lang_output_section_statement_type output_section_statement;
252b5132
RH
370 lang_assignment_statement_type assignment_statement;
371 lang_input_statement_type input_statement;
372 lang_target_statement_type target_statement;
373 lang_output_statement_type output_statement;
374 lang_input_section_type input_section;
375 lang_common_statement_type common_statement;
376 lang_object_symbols_statement_type object_symbols_statement;
377 lang_fill_statement_type fill_statement;
378 lang_padding_statement_type padding_statement;
379 lang_group_statement_type group_statement;
53d25da6 380 lang_insert_statement_type insert_statement;
252b5132
RH
381} lang_statement_union_type;
382
383/* This structure holds information about a program header, from the
384 PHDRS command in the linker script. */
385
6bdafbeb
NC
386struct lang_phdr
387{
252b5132
RH
388 struct lang_phdr *next;
389 const char *name;
390 unsigned long type;
b34976b6
AM
391 bfd_boolean filehdr;
392 bfd_boolean phdrs;
252b5132
RH
393 etree_type *at;
394 etree_type *flags;
395};
396
f5ff60a6
AM
397extern struct lang_phdr *lang_phdr_list;
398
252b5132
RH
399/* This structure is used to hold a list of sections which may not
400 cross reference each other. */
401
6bdafbeb
NC
402typedef struct lang_nocrossref
403{
252b5132
RH
404 struct lang_nocrossref *next;
405 const char *name;
6bdafbeb 406} lang_nocrossref_type;
252b5132
RH
407
408/* The list of nocrossref lists. */
409
6bdafbeb
NC
410struct lang_nocrossrefs
411{
252b5132 412 struct lang_nocrossrefs *next;
6bdafbeb 413 lang_nocrossref_type *list;
252b5132
RH
414};
415
416extern struct lang_nocrossrefs *nocrossref_list;
417
577a0623
AM
418/* This structure is used to hold a list of input section names which
419 will not match an output section in the linker script. */
420
6bdafbeb
NC
421struct unique_sections
422{
577a0623
AM
423 struct unique_sections *next;
424 const char *name;
425};
426
420e579c
HPN
427/* This structure records symbols for which we need to keep track of
428 definedness for use in the DEFINED () test. */
429
6bdafbeb
NC
430struct lang_definedness_hash_entry
431{
420e579c
HPN
432 struct bfd_hash_entry root;
433 int iteration;
434};
435
afd7a018
AM
436/* Used by place_orphan to keep track of orphan sections and statements. */
437
4a93e180
NC
438struct orphan_save
439{
afd7a018
AM
440 const char *name;
441 flagword flags;
442 lang_output_section_statement_type *os;
443 asection **section;
444 lang_statement_union_type **stmt;
445 lang_output_section_statement_type **os_tail;
446};
447
8be573a7 448extern const char *output_target;
252b5132 449extern lang_output_section_statement_type *abs_output_section;
aea4bd9d 450extern lang_statement_list_type lang_output_section_statement;
b34976b6 451extern bfd_boolean lang_has_input_file;
252b5132
RH
452extern etree_type *base;
453extern lang_statement_list_type *stat_ptr;
b34976b6 454extern bfd_boolean delete_output_file_on_failure;
252b5132 455
e3e942e9 456extern struct bfd_sym_chain entry_symbol;
1e281515 457extern const char *entry_section;
b34976b6 458extern bfd_boolean entry_from_cmdline;
b71e2778 459extern lang_statement_list_type file_chain;
dc27aea4 460extern lang_statement_list_type input_file_chain;
252b5132 461
420e579c
HPN
462extern int lang_statement_iteration;
463
f53154de 464extern void lang_init
1579bae1 465 (void);
750877ba
L
466extern void lang_finish
467 (void);
4a93e180
NC
468extern lang_memory_region_type * lang_memory_region_lookup
469 (const char * const, bfd_boolean);
470extern void lang_memory_region_alias
471 (const char *, const char *);
f53154de 472extern void lang_map
1579bae1 473 (void);
f53154de 474extern void lang_set_flags
1579bae1 475 (lang_memory_region_type *, const char *, int);
f53154de 476extern void lang_add_output
1579bae1 477 (const char *, int from_script);
aea4bd9d 478extern lang_output_section_statement_type *lang_enter_output_section_statement
1579bae1
AM
479 (const char *output_section_statement_name,
480 etree_type *address_exp,
481 enum section_type sectype,
1579bae1
AM
482 etree_type *align,
483 etree_type *subalign,
0841712e 484 etree_type *, int);
f53154de 485extern void lang_final
1579bae1 486 (void);
eaeb0a9d
AM
487extern void lang_relax_sections
488 (bfd_boolean);
f53154de 489extern void lang_process
1579bae1 490 (void);
f53154de 491extern void lang_section_start
ba916c8a 492 (const char *, union etree_union *, const segment_type *);
f53154de 493extern void lang_add_entry
1579bae1 494 (const char *, bfd_boolean);
a359509e
ZW
495extern void lang_default_entry
496 (const char *);
f53154de 497extern void lang_add_target
1579bae1 498 (const char *);
252b5132 499extern void lang_add_wild
1579bae1 500 (struct wildcard_spec *, struct wildcard_list *, bfd_boolean);
f53154de 501extern void lang_add_map
1579bae1 502 (const char *);
f53154de 503extern void lang_add_fill
1579bae1
AM
504 (fill_type *);
505extern lang_assignment_statement_type *lang_add_assignment
506 (union etree_union *);
f53154de 507extern void lang_add_attribute
1579bae1 508 (enum statement_enum);
f53154de 509extern void lang_startup
1579bae1 510 (const char *);
f53154de 511extern void lang_float
1579bae1 512 (bfd_boolean);
252b5132 513extern void lang_leave_output_section_statement
6bdafbeb 514 (fill_type *, const char *, lang_output_section_phdr_list *,
1579bae1 515 const char *);
f53154de 516extern void lang_abs_symbol_at_end_of
1579bae1 517 (const char *, const char *);
f53154de 518extern void lang_abs_symbol_at_beginning_of
1579bae1 519 (const char *, const char *);
f53154de 520extern void lang_statement_append
6bdafbeb
NC
521 (lang_statement_list_type *, lang_statement_union_type *,
522 lang_statement_union_type **);
252b5132 523extern void lang_for_each_input_file
1579bae1 524 (void (*dothis) (lang_input_statement_type *));
252b5132 525extern void lang_for_each_file
1579bae1 526 (void (*dothis) (lang_input_statement_type *));
f53154de 527extern void lang_reset_memory_regions
1579bae1 528 (void);
f2241121 529extern void lang_do_assignments
e9ee469a 530 (void);
252b5132 531
f53154de
AM
532#define LANG_FOR_EACH_INPUT_STATEMENT(statement) \
533 lang_input_statement_type *statement; \
534 for (statement = (lang_input_statement_type *) file_chain.head; \
535 statement != (lang_input_statement_type *) NULL; \
536 statement = (lang_input_statement_type *) statement->next) \
5cc18311 537
66c103b7
AM
538#define lang_output_section_find(NAME) \
539 lang_output_section_statement_lookup (NAME, 0, FALSE)
540
f53154de 541extern void lang_process
1579bae1 542 (void);
f53154de 543extern void ldlang_add_file
1579bae1 544 (lang_input_statement_type *);
afd7a018 545extern lang_output_section_statement_type *lang_output_section_find_by_flags
390fbbf1
AM
546 (const asection *, lang_output_section_statement_type **,
547 lang_match_sec_type_func);
afd7a018 548extern lang_output_section_statement_type *lang_insert_orphan
8a99a385 549 (asection *, const char *, int, lang_output_section_statement_type *,
7b986e99 550 struct orphan_save *, etree_type *, lang_statement_list_type *);
252b5132 551extern lang_input_statement_type *lang_add_input_file
1579bae1 552 (const char *, lang_input_file_enum_type, const char *);
f53154de 553extern void lang_add_keepsyms_file
1579bae1 554 (const char *);
66c103b7 555extern lang_output_section_statement_type *lang_output_section_statement_lookup
d127ecce
AM
556 (const char *, int, bfd_boolean);
557extern lang_output_section_statement_type *next_matching_output_section_statement
558 (lang_output_section_statement_type *, int);
f53154de 559extern void ldlang_add_undef
1579bae1 560 (const char *const);
f53154de 561extern void lang_add_output_format
1579bae1 562 (const char *, const char *, const char *, int);
f53154de 563extern void lang_list_init
1579bae1 564 (lang_statement_list_type *);
bde18da4
AM
565extern void push_stat_ptr
566 (lang_statement_list_type *);
567extern void pop_stat_ptr
568 (void);
f53154de 569extern void lang_add_data
1579bae1 570 (int type, union etree_union *);
252b5132 571extern void lang_add_reloc
1579bae1
AM
572 (bfd_reloc_code_real_type, reloc_howto_type *, asection *, const char *,
573 union etree_union *);
252b5132 574extern void lang_for_each_statement
1579bae1
AM
575 (void (*) (lang_statement_union_type *));
576extern void *stat_alloc
577 (size_t);
8423293d
AM
578extern void strip_excluded_output_sections
579 (void);
f53154de 580extern void dprint_statement
1579bae1 581 (lang_statement_union_type *, int);
e9ee469a
AM
582extern void lang_size_sections
583 (bfd_boolean *, bfd_boolean);
584extern void one_lang_size_sections_pass
585 (bfd_boolean *, bfd_boolean);
53d25da6
AM
586extern void lang_add_insert
587 (const char *, int);
f53154de 588extern void lang_enter_group
1579bae1 589 (void);
f53154de 590extern void lang_leave_group
1579bae1 591 (void);
39dcfe18 592extern void lang_add_section
1579bae1 593 (lang_statement_list_type *, asection *,
7b986e99 594 lang_output_section_statement_type *);
252b5132 595extern void lang_new_phdr
1579bae1
AM
596 (const char *, etree_type *, bfd_boolean, bfd_boolean, etree_type *,
597 etree_type *);
f53154de 598extern void lang_add_nocrossref
6bdafbeb 599 (lang_nocrossref_type *);
f53154de 600extern void lang_enter_overlay
7e7d5768 601 (etree_type *, etree_type *);
f53154de 602extern void lang_enter_overlay_section
1579bae1 603 (const char *);
252b5132 604extern void lang_leave_overlay_section
6bdafbeb 605 (fill_type *, lang_output_section_phdr_list *);
252b5132 606extern void lang_leave_overlay
1579bae1 607 (etree_type *, int, fill_type *, const char *,
6bdafbeb 608 lang_output_section_phdr_list *, const char *);
252b5132
RH
609
610extern struct bfd_elf_version_tree *lang_elf_version_info;
611
313e35ee 612extern struct bfd_elf_version_expr *lang_new_vers_pattern
86043bbb 613 (struct bfd_elf_version_expr *, const char *, const char *, bfd_boolean);
252b5132 614extern struct bfd_elf_version_tree *lang_new_vers_node
1579bae1 615 (struct bfd_elf_version_expr *, struct bfd_elf_version_expr *);
252b5132 616extern struct bfd_elf_version_deps *lang_add_vers_depend
1579bae1 617 (struct bfd_elf_version_deps *, const char *);
252b5132 618extern void lang_register_vers_node
1579bae1 619 (const char *, struct bfd_elf_version_tree *, struct bfd_elf_version_deps *);
55255dae
L
620extern void lang_append_dynamic_list (struct bfd_elf_version_expr *);
621extern void lang_append_dynamic_list_cpp_typeinfo (void);
40b36307 622extern void lang_append_dynamic_list_cpp_new (void);
f53154de 623extern void lang_add_unique
1579bae1 624 (const char *);
f53154de 625extern const char *lang_get_output_target
1579bae1 626 (void);
420e579c
HPN
627extern void lang_track_definedness (const char *);
628extern int lang_symbol_definition_iteration (const char *);
629extern void lang_update_definedness
630 (const char *, struct bfd_link_hash_entry *);
252b5132 631
b58f81ae 632extern void add_excluded_libs (const char *);
e9f53129
AM
633extern bfd_boolean load_symbols
634 (lang_input_statement_type *, lang_statement_list_type *);
b58f81ae 635
2889e75b
NC
636extern bfd_boolean
637ldlang_override_segment_assignment
638 (struct bfd_link_info *, bfd *, asection *, asection *, bfd_boolean);
639
252b5132 640#endif