]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* ldlang.h - linker command language support |
a2b64bed | 2 | Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
cf888e70 | 3 | 2001, 2002, 2003 |
aa8804e4 | 4 | Free Software Foundation, Inc. |
5cc18311 | 5 | |
252b5132 | 6 | This file is part of GLD, the Gnu Linker. |
5cc18311 | 7 | |
252b5132 RH |
8 | GLD is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by | |
e3dc8847 | 10 | the Free Software Foundation; either version 2, or (at your option) |
252b5132 | 11 | any later version. |
5cc18311 | 12 | |
252b5132 RH |
13 | GLD is distributed in the hope that it will be useful, |
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 RH |
18 | You should have received a copy of the GNU General Public License |
19 | along with GLD; see the file COPYING. If not, write to the Free | |
20 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
21 | 02111-1307, USA. */ | |
22 | ||
23 | #ifndef LDLANG_H | |
24 | #define LDLANG_H | |
25 | ||
a747ee4d NC |
26 | #define DEFAULT_MEMORY_REGION "*default*" |
27 | ||
89cdebba | 28 | typedef enum { |
252b5132 RH |
29 | lang_input_file_is_l_enum, |
30 | lang_input_file_is_symbols_only_enum, | |
31 | lang_input_file_is_marker_enum, | |
32 | lang_input_file_is_fake_enum, | |
33 | lang_input_file_is_search_file_enum, | |
34 | lang_input_file_is_file_enum | |
35 | } lang_input_file_enum_type; | |
36 | ||
2c382fb6 AM |
37 | struct _fill_type { |
38 | size_t size; | |
39 | unsigned char data[1]; | |
40 | }; | |
89cdebba KH |
41 | |
42 | typedef struct statement_list { | |
252b5132 RH |
43 | union lang_statement_union *head; |
44 | union lang_statement_union **tail; | |
45 | } lang_statement_list_type; | |
46 | ||
89cdebba | 47 | typedef struct memory_region_struct { |
252b5132 RH |
48 | char *name; |
49 | struct memory_region_struct *next; | |
50 | bfd_vma origin; | |
51 | bfd_size_type length; | |
52 | bfd_vma current; | |
53 | bfd_size_type old_length; | |
54 | flagword flags; | |
55 | flagword not_flags; | |
b34976b6 | 56 | bfd_boolean had_full_message; |
89cdebba KH |
57 | } lang_memory_region_type; |
58 | ||
59 | typedef struct lang_statement_header_struct { | |
60 | union lang_statement_union *next; | |
61 | enum statement_enum { | |
62 | lang_output_section_statement_enum, | |
63 | lang_assignment_statement_enum, | |
64 | lang_input_statement_enum, | |
65 | lang_address_statement_enum, | |
66 | lang_wild_statement_enum, | |
67 | lang_input_section_enum, | |
68 | lang_object_symbols_statement_enum, | |
69 | lang_fill_statement_enum, | |
70 | lang_data_statement_enum, | |
71 | lang_reloc_statement_enum, | |
72 | lang_target_statement_enum, | |
73 | lang_output_statement_enum, | |
74 | lang_padding_statement_enum, | |
75 | lang_group_statement_enum, | |
76 | ||
77 | lang_afile_asection_pair_statement_enum, | |
78 | lang_constructors_statement_enum | |
79 | } type; | |
252b5132 RH |
80 | } lang_statement_header_type; |
81 | ||
89cdebba | 82 | typedef struct { |
252b5132 RH |
83 | lang_statement_header_type header; |
84 | union etree_union *exp; | |
85 | } lang_assignment_statement_type; | |
86 | ||
89cdebba | 87 | typedef struct lang_target_statement_struct { |
252b5132 RH |
88 | lang_statement_header_type header; |
89 | const char *target; | |
90 | } lang_target_statement_type; | |
91 | ||
89cdebba | 92 | typedef struct lang_output_statement_struct { |
252b5132 RH |
93 | lang_statement_header_type header; |
94 | const char *name; | |
95 | } lang_output_statement_type; | |
96 | ||
97 | /* Section types specified in a linker script. */ | |
98 | ||
89cdebba | 99 | enum section_type { |
252b5132 RH |
100 | normal_section, |
101 | dsect_section, | |
102 | copy_section, | |
103 | noload_section, | |
104 | info_section, | |
105 | overlay_section | |
106 | }; | |
107 | ||
108 | /* This structure holds a list of program headers describing segments | |
109 | in which this section should be placed. */ | |
110 | ||
89cdebba | 111 | struct lang_output_section_phdr_list { |
252b5132 RH |
112 | struct lang_output_section_phdr_list *next; |
113 | const char *name; | |
b34976b6 | 114 | bfd_boolean used; |
252b5132 RH |
115 | }; |
116 | ||
89cdebba | 117 | typedef struct lang_output_section_statement_struct { |
252b5132 RH |
118 | lang_statement_header_type header; |
119 | union etree_union *addr_tree; | |
120 | lang_statement_list_type children; | |
121 | const char *memspec; | |
122 | union lang_statement_union *next; | |
123 | const char *name; | |
124 | ||
b34976b6 | 125 | bfd_boolean processed; |
5cc18311 | 126 | |
252b5132 RH |
127 | asection *bfd_section; |
128 | flagword flags; /* Or together of all input sections */ | |
129 | enum section_type sectype; | |
130 | struct memory_region_struct *region; | |
562d3460 | 131 | struct memory_region_struct *lma_region; |
252b5132 | 132 | size_t block_value; |
2c382fb6 | 133 | fill_type *fill; |
252b5132 | 134 | |
89cdebba KH |
135 | int subsection_alignment; /* alignment of components */ |
136 | int section_alignment; /* alignment of start of section */ | |
252b5132 RH |
137 | |
138 | union etree_union *load_base; | |
139 | ||
9f88b410 RS |
140 | /* If non-null, an expression to evaluate after setting the section's |
141 | size. The expression is evaluated inside REGION (above) with '.' | |
142 | set to the end of the section. Used in the last overlay section | |
143 | to move '.' past all the overlaid sections. */ | |
144 | union etree_union *update_dot_tree; | |
145 | ||
252b5132 RH |
146 | struct lang_output_section_phdr_list *phdrs; |
147 | } lang_output_section_statement_type; | |
148 | ||
89cdebba | 149 | typedef struct { |
252b5132 RH |
150 | lang_statement_header_type header; |
151 | } lang_common_statement_type; | |
152 | ||
89cdebba | 153 | typedef struct { |
252b5132 RH |
154 | lang_statement_header_type header; |
155 | } lang_object_symbols_statement_type; | |
156 | ||
89cdebba | 157 | typedef struct { |
252b5132 | 158 | lang_statement_header_type header; |
2c382fb6 | 159 | fill_type *fill; |
252b5132 RH |
160 | int size; |
161 | asection *output_section; | |
162 | } lang_fill_statement_type; | |
163 | ||
89cdebba | 164 | typedef struct { |
252b5132 RH |
165 | lang_statement_header_type header; |
166 | unsigned int type; | |
89cdebba | 167 | union etree_union *exp; |
252b5132 RH |
168 | bfd_vma value; |
169 | asection *output_section; | |
170 | bfd_vma output_vma; | |
171 | } lang_data_statement_type; | |
172 | ||
173 | /* Generate a reloc in the output file. */ | |
174 | ||
89cdebba | 175 | typedef struct { |
252b5132 RH |
176 | lang_statement_header_type header; |
177 | ||
178 | /* Reloc to generate. */ | |
179 | bfd_reloc_code_real_type reloc; | |
180 | ||
181 | /* Reloc howto structure. */ | |
182 | reloc_howto_type *howto; | |
183 | ||
184 | /* Section to generate reloc against. Exactly one of section and | |
185 | name must be NULL. */ | |
186 | asection *section; | |
187 | ||
188 | /* Name of symbol to generate reloc against. Exactly one of section | |
189 | and name must be NULL. */ | |
190 | const char *name; | |
191 | ||
192 | /* Expression for addend. */ | |
193 | union etree_union *addend_exp; | |
194 | ||
195 | /* Resolved addend. */ | |
196 | bfd_vma addend_value; | |
197 | ||
198 | /* Output section where reloc should be performed. */ | |
199 | asection *output_section; | |
200 | ||
201 | /* VMA within output section. */ | |
202 | bfd_vma output_vma; | |
203 | } lang_reloc_statement_type; | |
204 | ||
89cdebba | 205 | typedef struct lang_input_statement_struct { |
252b5132 RH |
206 | lang_statement_header_type header; |
207 | /* Name of this file. */ | |
208 | const char *filename; | |
209 | /* Name to use for the symbol giving address of text start */ | |
210 | /* Usually the same as filename, but for a file spec'd with -l | |
211 | this is the -l switch itself rather than the filename. */ | |
212 | const char *local_sym_name; | |
5cc18311 | 213 | |
252b5132 | 214 | bfd *the_bfd; |
5cc18311 | 215 | |
b34976b6 | 216 | bfd_boolean closed; |
252b5132 | 217 | file_ptr passive_position; |
5cc18311 | 218 | |
252b5132 RH |
219 | /* Symbol table of the file. */ |
220 | asymbol **asymbols; | |
221 | unsigned int symbol_count; | |
5cc18311 | 222 | |
252b5132 RH |
223 | /* Point to the next file - whatever it is, wanders up and down |
224 | archives */ | |
5cc18311 | 225 | |
89cdebba | 226 | union lang_statement_union *next; |
252b5132 | 227 | /* Point to the next file, but skips archive contents */ |
89cdebba | 228 | union lang_statement_union *next_real_file; |
5cc18311 | 229 | |
b34976b6 | 230 | bfd_boolean is_archive; |
5cc18311 | 231 | |
252b5132 | 232 | /* 1 means search a set of directories for this file. */ |
b34976b6 | 233 | bfd_boolean search_dirs_flag; |
5cc18311 | 234 | |
e3f2db7f AO |
235 | /* 1 means this was found in a search directory marked as sysrooted, |
236 | if search_dirs_flag is false, otherwise, that it should be | |
237 | searched in ld_sysroot before any other location, as long as it | |
238 | starts with a slash. */ | |
239 | bfd_boolean sysrooted; | |
240 | ||
252b5132 RH |
241 | /* 1 means this is base file of incremental load. |
242 | Do not load this file's text or data. | |
5cc18311 KH |
243 | Also default text_start to after this file's bss. */ |
244 | ||
b34976b6 | 245 | bfd_boolean just_syms_flag; |
252b5132 RH |
246 | |
247 | /* Whether to search for this entry as a dynamic archive. */ | |
b34976b6 | 248 | bfd_boolean dynamic; |
252b5132 RH |
249 | |
250 | /* Whether to include the entire contents of an archive. */ | |
b34976b6 | 251 | bfd_boolean whole_archive; |
252b5132 | 252 | |
b34976b6 | 253 | bfd_boolean loaded; |
5cc18311 | 254 | |
89cdebba KH |
255 | #if 0 |
256 | unsigned int globals_in_this_file; | |
257 | #endif | |
252b5132 | 258 | const char *target; |
b34976b6 | 259 | bfd_boolean real; |
252b5132 RH |
260 | } lang_input_statement_type; |
261 | ||
89cdebba | 262 | typedef struct { |
252b5132 RH |
263 | lang_statement_header_type header; |
264 | asection *section; | |
265 | lang_input_statement_type *ifile; | |
252b5132 | 266 | |
5cc18311 | 267 | } lang_input_section_type; |
252b5132 | 268 | |
89cdebba | 269 | typedef struct { |
252b5132 RH |
270 | lang_statement_header_type header; |
271 | asection *section; | |
272 | union lang_statement_union *file; | |
273 | } lang_afile_asection_pair_statement_type; | |
274 | ||
89cdebba | 275 | typedef struct lang_wild_statement_struct { |
252b5132 | 276 | lang_statement_header_type header; |
252b5132 | 277 | const char *filename; |
b34976b6 | 278 | bfd_boolean filenames_sorted; |
b6bf44ba | 279 | struct wildcard_list *section_list; |
b34976b6 | 280 | bfd_boolean keep_sections; |
252b5132 RH |
281 | lang_statement_list_type children; |
282 | } lang_wild_statement_type; | |
283 | ||
89cdebba | 284 | typedef struct lang_address_statement_struct { |
252b5132 | 285 | lang_statement_header_type header; |
89cdebba KH |
286 | const char *section_name; |
287 | union etree_union *address; | |
252b5132 RH |
288 | } lang_address_statement_type; |
289 | ||
89cdebba | 290 | typedef struct { |
252b5132 RH |
291 | lang_statement_header_type header; |
292 | bfd_vma output_offset; | |
293 | size_t size; | |
294 | asection *output_section; | |
2c382fb6 | 295 | fill_type *fill; |
252b5132 RH |
296 | } lang_padding_statement_type; |
297 | ||
298 | /* A group statement collects a set of libraries together. The | |
299 | libraries are searched multiple times, until no new undefined | |
300 | symbols are found. The effect is to search a group of libraries as | |
301 | though they were a single library. */ | |
302 | ||
89cdebba | 303 | typedef struct { |
252b5132 RH |
304 | lang_statement_header_type header; |
305 | lang_statement_list_type children; | |
306 | } lang_group_statement_type; | |
307 | ||
89cdebba | 308 | typedef union lang_statement_union { |
252b5132 | 309 | lang_statement_header_type header; |
252b5132 RH |
310 | lang_wild_statement_type wild_statement; |
311 | lang_data_statement_type data_statement; | |
312 | lang_reloc_statement_type reloc_statement; | |
313 | lang_address_statement_type address_statement; | |
314 | lang_output_section_statement_type output_section_statement; | |
315 | lang_afile_asection_pair_statement_type afile_asection_pair_statement; | |
316 | lang_assignment_statement_type assignment_statement; | |
317 | lang_input_statement_type input_statement; | |
318 | lang_target_statement_type target_statement; | |
319 | lang_output_statement_type output_statement; | |
320 | lang_input_section_type input_section; | |
321 | lang_common_statement_type common_statement; | |
322 | lang_object_symbols_statement_type object_symbols_statement; | |
323 | lang_fill_statement_type fill_statement; | |
324 | lang_padding_statement_type padding_statement; | |
325 | lang_group_statement_type group_statement; | |
326 | } lang_statement_union_type; | |
327 | ||
328 | /* This structure holds information about a program header, from the | |
329 | PHDRS command in the linker script. */ | |
330 | ||
89cdebba | 331 | struct lang_phdr { |
252b5132 RH |
332 | struct lang_phdr *next; |
333 | const char *name; | |
334 | unsigned long type; | |
b34976b6 AM |
335 | bfd_boolean filehdr; |
336 | bfd_boolean phdrs; | |
252b5132 RH |
337 | etree_type *at; |
338 | etree_type *flags; | |
339 | }; | |
340 | ||
341 | /* This structure is used to hold a list of sections which may not | |
342 | cross reference each other. */ | |
343 | ||
89cdebba | 344 | struct lang_nocrossref { |
252b5132 RH |
345 | struct lang_nocrossref *next; |
346 | const char *name; | |
347 | }; | |
348 | ||
349 | /* The list of nocrossref lists. */ | |
350 | ||
89cdebba | 351 | struct lang_nocrossrefs { |
252b5132 RH |
352 | struct lang_nocrossrefs *next; |
353 | struct lang_nocrossref *list; | |
354 | }; | |
355 | ||
356 | extern struct lang_nocrossrefs *nocrossref_list; | |
357 | ||
577a0623 AM |
358 | /* This structure is used to hold a list of input section names which |
359 | will not match an output section in the linker script. */ | |
360 | ||
361 | struct unique_sections { | |
362 | struct unique_sections *next; | |
363 | const char *name; | |
364 | }; | |
365 | ||
420e579c HPN |
366 | /* This structure records symbols for which we need to keep track of |
367 | definedness for use in the DEFINED () test. */ | |
368 | ||
369 | struct lang_definedness_hash_entry { | |
370 | struct bfd_hash_entry root; | |
371 | int iteration; | |
372 | }; | |
373 | ||
577a0623 AM |
374 | extern struct unique_sections *unique_section_list; |
375 | ||
252b5132 | 376 | extern lang_output_section_statement_type *abs_output_section; |
aea4bd9d | 377 | extern lang_statement_list_type lang_output_section_statement; |
b34976b6 | 378 | extern bfd_boolean lang_has_input_file; |
252b5132 RH |
379 | extern etree_type *base; |
380 | extern lang_statement_list_type *stat_ptr; | |
b34976b6 | 381 | extern bfd_boolean delete_output_file_on_failure; |
252b5132 | 382 | |
e3e942e9 | 383 | extern struct bfd_sym_chain entry_symbol; |
1e281515 | 384 | extern const char *entry_section; |
b34976b6 | 385 | extern bfd_boolean entry_from_cmdline; |
b71e2778 | 386 | extern lang_statement_list_type file_chain; |
252b5132 | 387 | |
420e579c HPN |
388 | extern int lang_statement_iteration; |
389 | ||
f53154de | 390 | extern void lang_init |
1579bae1 | 391 | (void); |
252b5132 | 392 | extern struct memory_region_struct *lang_memory_region_lookup |
a747ee4d | 393 | (const char *const, bfd_boolean); |
252b5132 | 394 | extern struct memory_region_struct *lang_memory_region_default |
1579bae1 | 395 | (asection *); |
f53154de | 396 | extern void lang_map |
1579bae1 | 397 | (void); |
f53154de | 398 | extern void lang_set_flags |
1579bae1 | 399 | (lang_memory_region_type *, const char *, int); |
f53154de | 400 | extern void lang_add_output |
1579bae1 | 401 | (const char *, int from_script); |
aea4bd9d | 402 | extern lang_output_section_statement_type *lang_enter_output_section_statement |
1579bae1 AM |
403 | (const char *output_section_statement_name, |
404 | etree_type *address_exp, | |
405 | enum section_type sectype, | |
406 | bfd_vma block_value, | |
407 | etree_type *align, | |
408 | etree_type *subalign, | |
409 | etree_type *); | |
f53154de | 410 | extern void lang_final |
1579bae1 | 411 | (void); |
f53154de | 412 | extern void lang_process |
1579bae1 | 413 | (void); |
f53154de | 414 | extern void lang_section_start |
1579bae1 | 415 | (const char *, union etree_union *); |
f53154de | 416 | extern void lang_add_entry |
1579bae1 | 417 | (const char *, bfd_boolean); |
f53154de | 418 | extern void lang_add_target |
1579bae1 | 419 | (const char *); |
252b5132 | 420 | extern void lang_add_wild |
1579bae1 | 421 | (struct wildcard_spec *, struct wildcard_list *, bfd_boolean); |
f53154de | 422 | extern void lang_add_map |
1579bae1 | 423 | (const char *); |
f53154de | 424 | extern void lang_add_fill |
1579bae1 AM |
425 | (fill_type *); |
426 | extern lang_assignment_statement_type *lang_add_assignment | |
427 | (union etree_union *); | |
f53154de | 428 | extern void lang_add_attribute |
1579bae1 | 429 | (enum statement_enum); |
f53154de | 430 | extern void lang_startup |
1579bae1 | 431 | (const char *); |
f53154de | 432 | extern void lang_float |
1579bae1 | 433 | (bfd_boolean); |
252b5132 | 434 | extern void lang_leave_output_section_statement |
1579bae1 AM |
435 | (fill_type *, const char *, struct lang_output_section_phdr_list *, |
436 | const char *); | |
f53154de | 437 | extern void lang_abs_symbol_at_end_of |
1579bae1 | 438 | (const char *, const char *); |
f53154de | 439 | extern void lang_abs_symbol_at_beginning_of |
1579bae1 | 440 | (const char *, const char *); |
f53154de | 441 | extern void lang_statement_append |
1579bae1 AM |
442 | (struct statement_list *, union lang_statement_union *, |
443 | union lang_statement_union **); | |
252b5132 | 444 | extern void lang_for_each_input_file |
1579bae1 | 445 | (void (*dothis) (lang_input_statement_type *)); |
252b5132 | 446 | extern void lang_for_each_file |
1579bae1 | 447 | (void (*dothis) (lang_input_statement_type *)); |
f53154de | 448 | extern void lang_reset_memory_regions |
1579bae1 | 449 | (void); |
f2241121 | 450 | extern void lang_do_assignments |
1579bae1 AM |
451 | (lang_statement_union_type *, lang_output_section_statement_type *, |
452 | fill_type *, bfd_vma); | |
252b5132 | 453 | |
f53154de AM |
454 | #define LANG_FOR_EACH_INPUT_STATEMENT(statement) \ |
455 | lang_input_statement_type *statement; \ | |
456 | for (statement = (lang_input_statement_type *) file_chain.head; \ | |
457 | statement != (lang_input_statement_type *) NULL; \ | |
458 | statement = (lang_input_statement_type *) statement->next) \ | |
5cc18311 | 459 | |
f53154de | 460 | extern void lang_process |
1579bae1 | 461 | (void); |
f53154de | 462 | extern void ldlang_add_file |
1579bae1 | 463 | (lang_input_statement_type *); |
252b5132 | 464 | extern lang_output_section_statement_type *lang_output_section_find |
1579bae1 | 465 | (const char * const); |
252b5132 | 466 | extern lang_input_statement_type *lang_add_input_file |
1579bae1 | 467 | (const char *, lang_input_file_enum_type, const char *); |
f53154de | 468 | extern void lang_add_keepsyms_file |
1579bae1 | 469 | (const char *); |
252b5132 | 470 | extern lang_output_section_statement_type * |
f53154de | 471 | lang_output_section_statement_lookup |
1579bae1 | 472 | (const char *const); |
f53154de | 473 | extern void ldlang_add_undef |
1579bae1 | 474 | (const char *const); |
f53154de | 475 | extern void lang_add_output_format |
1579bae1 | 476 | (const char *, const char *, const char *, int); |
f53154de | 477 | extern void lang_list_init |
1579bae1 | 478 | (lang_statement_list_type *); |
f53154de | 479 | extern void lang_add_data |
1579bae1 | 480 | (int type, union etree_union *); |
252b5132 | 481 | extern void lang_add_reloc |
1579bae1 AM |
482 | (bfd_reloc_code_real_type, reloc_howto_type *, asection *, const char *, |
483 | union etree_union *); | |
252b5132 | 484 | extern void lang_for_each_statement |
1579bae1 AM |
485 | (void (*) (lang_statement_union_type *)); |
486 | extern void *stat_alloc | |
487 | (size_t); | |
f53154de | 488 | extern void dprint_statement |
1579bae1 | 489 | (lang_statement_union_type *, int); |
252b5132 | 490 | extern bfd_vma lang_size_sections |
1579bae1 AM |
491 | (lang_statement_union_type *, lang_output_section_statement_type *, |
492 | lang_statement_union_type **, fill_type *, bfd_vma, bfd_boolean *, | |
493 | bfd_boolean); | |
f53154de | 494 | extern void lang_enter_group |
1579bae1 | 495 | (void); |
f53154de | 496 | extern void lang_leave_group |
1579bae1 | 497 | (void); |
39dcfe18 | 498 | extern void lang_add_section |
1579bae1 AM |
499 | (lang_statement_list_type *, asection *, |
500 | lang_output_section_statement_type *, lang_input_statement_type *); | |
252b5132 | 501 | extern void lang_new_phdr |
1579bae1 AM |
502 | (const char *, etree_type *, bfd_boolean, bfd_boolean, etree_type *, |
503 | etree_type *); | |
f53154de | 504 | extern void lang_add_nocrossref |
1579bae1 | 505 | (struct lang_nocrossref *); |
f53154de | 506 | extern void lang_enter_overlay |
7e7d5768 | 507 | (etree_type *, etree_type *); |
f53154de | 508 | extern void lang_enter_overlay_section |
1579bae1 | 509 | (const char *); |
252b5132 | 510 | extern void lang_leave_overlay_section |
1579bae1 | 511 | (fill_type *, struct lang_output_section_phdr_list *); |
252b5132 | 512 | extern void lang_leave_overlay |
1579bae1 AM |
513 | (etree_type *, int, fill_type *, const char *, |
514 | struct lang_output_section_phdr_list *, const char *); | |
252b5132 RH |
515 | |
516 | extern struct bfd_elf_version_tree *lang_elf_version_info; | |
517 | ||
313e35ee | 518 | extern struct bfd_elf_version_expr *lang_new_vers_pattern |
1579bae1 | 519 | (struct bfd_elf_version_expr *, const char *, const char *); |
252b5132 | 520 | extern struct bfd_elf_version_tree *lang_new_vers_node |
1579bae1 | 521 | (struct bfd_elf_version_expr *, struct bfd_elf_version_expr *); |
252b5132 | 522 | extern struct bfd_elf_version_deps *lang_add_vers_depend |
1579bae1 | 523 | (struct bfd_elf_version_deps *, const char *); |
252b5132 | 524 | extern void lang_register_vers_node |
1579bae1 | 525 | (const char *, struct bfd_elf_version_tree *, struct bfd_elf_version_deps *); |
f53154de | 526 | bfd_boolean unique_section_p |
1579bae1 | 527 | (const char *); |
f53154de | 528 | extern void lang_add_unique |
1579bae1 | 529 | (const char *); |
f53154de | 530 | extern const char *lang_get_output_target |
1579bae1 | 531 | (void); |
420e579c HPN |
532 | extern void lang_track_definedness (const char *); |
533 | extern int lang_symbol_definition_iteration (const char *); | |
534 | extern void lang_update_definedness | |
535 | (const char *, struct bfd_link_hash_entry *); | |
252b5132 RH |
536 | |
537 | #endif |