ldlang.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. /* ldlang.h - linker command language support
  2. Copyright (C) 1991-2017 Free Software Foundation, Inc.
  3. This file is part of the GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef LDLANG_H
  17. #define LDLANG_H
  18. #define DEFAULT_MEMORY_REGION "*default*"
  19. typedef enum
  20. {
  21. lang_input_file_is_l_enum,
  22. lang_input_file_is_symbols_only_enum,
  23. lang_input_file_is_marker_enum,
  24. lang_input_file_is_fake_enum,
  25. lang_input_file_is_search_file_enum,
  26. lang_input_file_is_file_enum
  27. } lang_input_file_enum_type;
  28. struct _fill_type
  29. {
  30. size_t size;
  31. unsigned char data[1];
  32. };
  33. typedef struct statement_list
  34. {
  35. union lang_statement_union * head;
  36. union lang_statement_union ** tail;
  37. } lang_statement_list_type;
  38. typedef struct memory_region_name_struct
  39. {
  40. const char * name;
  41. struct memory_region_name_struct * next;
  42. } lang_memory_region_name;
  43. typedef struct memory_region_struct
  44. {
  45. lang_memory_region_name name_list;
  46. struct memory_region_struct *next;
  47. union etree_union *origin_exp;
  48. bfd_vma origin;
  49. bfd_size_type length;
  50. union etree_union *length_exp;
  51. bfd_vma current;
  52. union lang_statement_union *last_os;
  53. flagword flags;
  54. flagword not_flags;
  55. bfd_boolean had_full_message;
  56. } lang_memory_region_type;
  57. enum statement_enum
  58. {
  59. lang_output_section_statement_enum,
  60. lang_assignment_statement_enum,
  61. lang_input_statement_enum,
  62. lang_address_statement_enum,
  63. lang_wild_statement_enum,
  64. lang_input_section_enum,
  65. lang_object_symbols_statement_enum,
  66. lang_fill_statement_enum,
  67. lang_data_statement_enum,
  68. lang_reloc_statement_enum,
  69. lang_target_statement_enum,
  70. lang_output_statement_enum,
  71. lang_padding_statement_enum,
  72. lang_group_statement_enum,
  73. lang_insert_statement_enum,
  74. lang_constructors_statement_enum
  75. };
  76. typedef struct lang_statement_header_struct
  77. {
  78. union lang_statement_union *next;
  79. enum statement_enum type;
  80. } lang_statement_header_type;
  81. typedef struct
  82. {
  83. lang_statement_header_type header;
  84. union etree_union *exp;
  85. } lang_assignment_statement_type;
  86. typedef struct lang_target_statement_struct
  87. {
  88. lang_statement_header_type header;
  89. const char *target;
  90. } lang_target_statement_type;
  91. typedef struct lang_output_statement_struct
  92. {
  93. lang_statement_header_type header;
  94. const char *name;
  95. } lang_output_statement_type;
  96. /* Section types specified in a linker script. */
  97. enum section_type
  98. {
  99. normal_section,
  100. overlay_section,
  101. noload_section,
  102. noalloc_section
  103. };
  104. /* This structure holds a list of program headers describing
  105. segments in which this section should be placed. */
  106. typedef struct lang_output_section_phdr_list
  107. {
  108. struct lang_output_section_phdr_list *next;
  109. const char *name;
  110. bfd_boolean used;
  111. } lang_output_section_phdr_list;
  112. typedef struct lang_output_section_statement_struct
  113. {
  114. lang_statement_header_type header;
  115. lang_statement_list_type children;
  116. struct lang_output_section_statement_struct *next;
  117. struct lang_output_section_statement_struct *prev;
  118. const char *name;
  119. asection *bfd_section;
  120. lang_memory_region_type *region;
  121. lang_memory_region_type *lma_region;
  122. fill_type *fill;
  123. union etree_union *addr_tree;
  124. union etree_union *load_base;
  125. /* If non-null, an expression to evaluate after setting the section's
  126. size. The expression is evaluated inside REGION (above) with '.'
  127. set to the end of the section. Used in the last overlay section
  128. to move '.' past all the overlaid sections. */
  129. union etree_union *update_dot_tree;
  130. lang_output_section_phdr_list *phdrs;
  131. unsigned int block_value;
  132. int subsection_alignment; /* Alignment of components. */
  133. int section_alignment; /* Alignment of start of section. */
  134. int constraint;
  135. flagword flags;
  136. enum section_type sectype;
  137. unsigned int processed_vma : 1;
  138. unsigned int processed_lma : 1;
  139. unsigned int all_input_readonly : 1;
  140. /* If this section should be ignored. */
  141. unsigned int ignored : 1;
  142. /* If this section should update "dot". Prevents section being ignored. */
  143. unsigned int update_dot : 1;
  144. /* If this section is after assignment to _end. */
  145. unsigned int after_end : 1;
  146. /* If this section uses the alignment of its input sections. */
  147. unsigned int align_lma_with_input : 1;
  148. } lang_output_section_statement_type;
  149. typedef struct
  150. {
  151. lang_statement_header_type header;
  152. } lang_common_statement_type;
  153. typedef struct
  154. {
  155. lang_statement_header_type header;
  156. } lang_object_symbols_statement_type;
  157. typedef struct
  158. {
  159. lang_statement_header_type header;
  160. fill_type *fill;
  161. int size;
  162. asection *output_section;
  163. } lang_fill_statement_type;
  164. typedef struct
  165. {
  166. lang_statement_header_type header;
  167. unsigned int type;
  168. union etree_union *exp;
  169. bfd_vma value;
  170. asection *output_section;
  171. bfd_vma output_offset;
  172. } lang_data_statement_type;
  173. /* Generate a reloc in the output file. */
  174. typedef struct
  175. {
  176. lang_statement_header_type header;
  177. /* Reloc to generate. */
  178. bfd_reloc_code_real_type reloc;
  179. /* Reloc howto structure. */
  180. reloc_howto_type *howto;
  181. /* Section to generate reloc against.
  182. Exactly one of section and name must be NULL. */
  183. asection *section;
  184. /* Name of symbol to generate reloc against.
  185. Exactly one of section and name must be NULL. */
  186. const char *name;
  187. /* Expression for addend. */
  188. union etree_union *addend_exp;
  189. /* Resolved addend. */
  190. bfd_vma addend_value;
  191. /* Output section where reloc should be performed. */
  192. asection *output_section;
  193. /* Offset within output section. */
  194. bfd_vma output_offset;
  195. } lang_reloc_statement_type;
  196. struct lang_input_statement_flags
  197. {
  198. /* 1 means this file was specified in a -l option. */
  199. unsigned int maybe_archive : 1;
  200. /* 1 means this file was specified in a -l:namespec option. */
  201. unsigned int full_name_provided : 1;
  202. /* 1 means search a set of directories for this file. */
  203. unsigned int search_dirs : 1;
  204. /* 1 means this was found when processing a script in the sysroot. */
  205. unsigned int sysrooted : 1;
  206. /* 1 means this is base file of incremental load.
  207. Do not load this file's text or data.
  208. Also default text_start to after this file's bss. */
  209. unsigned int just_syms : 1;
  210. /* Whether to search for this entry as a dynamic archive. */
  211. unsigned int dynamic : 1;
  212. /* Set if a DT_NEEDED tag should be added not just for the dynamic library
  213. explicitly given by this entry but also for any dynamic libraries in
  214. this entry's needed list. */
  215. unsigned int add_DT_NEEDED_for_dynamic : 1;
  216. /* Set if this entry should cause a DT_NEEDED tag only when some
  217. regular file references its symbols (ie. --as-needed is in effect). */
  218. unsigned int add_DT_NEEDED_for_regular : 1;
  219. /* Whether to include the entire contents of an archive. */
  220. unsigned int whole_archive : 1;
  221. /* Set when bfd opening is successful. */
  222. unsigned int loaded : 1;
  223. unsigned int real : 1;
  224. /* Set if the file does not exist. */
  225. unsigned int missing_file : 1;
  226. /* Set if reloading an archive or --as-needed lib. */
  227. unsigned int reload : 1;
  228. #ifdef ENABLE_PLUGINS
  229. /* Set if the file was claimed by a plugin. */
  230. unsigned int claimed : 1;
  231. /* Set if the file was claimed from an archive. */
  232. unsigned int claim_archive : 1;
  233. /* Set if added by the lto plugin add_input_file callback. */
  234. unsigned int lto_output : 1;
  235. #endif /* ENABLE_PLUGINS */
  236. /* Head of list of pushed flags. */
  237. struct lang_input_statement_flags *pushed;
  238. };
  239. typedef struct lang_input_statement_struct
  240. {
  241. lang_statement_header_type header;
  242. /* Name of this file. */
  243. const char *filename;
  244. /* Name to use for the symbol giving address of text start.
  245. Usually the same as filename, but for a file spec'd with
  246. -l this is the -l switch itself rather than the filename. */
  247. const char *local_sym_name;
  248. bfd *the_bfd;
  249. struct flag_info *section_flag_list;
  250. /* Point to the next file - whatever it is, wanders up and down
  251. archives */
  252. union lang_statement_union *next;
  253. /* Point to the next file, but skips archive contents. */
  254. union lang_statement_union *next_real_file;
  255. const char *target;
  256. struct lang_input_statement_flags flags;
  257. } lang_input_statement_type;
  258. typedef struct
  259. {
  260. lang_statement_header_type header;
  261. asection *section;
  262. } lang_input_section_type;
  263. struct map_symbol_def {
  264. struct bfd_link_hash_entry *entry;
  265. struct map_symbol_def *next;
  266. };
  267. /* For input sections, when writing a map file: head / tail of a linked
  268. list of hash table entries for symbols defined in this section. */
  269. typedef struct input_section_userdata_struct
  270. {
  271. struct map_symbol_def *map_symbol_def_head;
  272. struct map_symbol_def **map_symbol_def_tail;
  273. unsigned long map_symbol_def_count;
  274. } input_section_userdata_type;
  275. #define get_userdata(x) ((x)->userdata)
  276. typedef struct lang_wild_statement_struct lang_wild_statement_type;
  277. typedef void (*callback_t) (lang_wild_statement_type *, struct wildcard_list *,
  278. asection *, struct flag_info *,
  279. lang_input_statement_type *, void *);
  280. typedef void (*walk_wild_section_handler_t) (lang_wild_statement_type *,
  281. lang_input_statement_type *,
  282. callback_t callback,
  283. void *data);
  284. typedef bfd_boolean (*lang_match_sec_type_func) (bfd *, const asection *,
  285. bfd *, const asection *);
  286. /* Binary search tree structure to efficiently sort sections by
  287. name. */
  288. typedef struct lang_section_bst
  289. {
  290. asection *section;
  291. struct lang_section_bst *left;
  292. struct lang_section_bst *right;
  293. } lang_section_bst_type;
  294. struct lang_wild_statement_struct
  295. {
  296. lang_statement_header_type header;
  297. const char *filename;
  298. bfd_boolean filenames_sorted;
  299. struct wildcard_list *section_list;
  300. bfd_boolean keep_sections;
  301. lang_statement_list_type children;
  302. struct name_list *exclude_name_list;
  303. walk_wild_section_handler_t walk_wild_section_handler;
  304. struct wildcard_list *handler_data[4];
  305. lang_section_bst_type *tree;
  306. struct flag_info *section_flag_list;
  307. };
  308. typedef struct lang_address_statement_struct
  309. {
  310. lang_statement_header_type header;
  311. const char *section_name;
  312. union etree_union *address;
  313. const segment_type *segment;
  314. } lang_address_statement_type;
  315. typedef struct
  316. {
  317. lang_statement_header_type header;
  318. bfd_vma output_offset;
  319. bfd_size_type size;
  320. asection *output_section;
  321. fill_type *fill;
  322. } lang_padding_statement_type;
  323. /* A group statement collects a set of libraries together. The
  324. libraries are searched multiple times, until no new undefined
  325. symbols are found. The effect is to search a group of libraries as
  326. though they were a single library. */
  327. typedef struct
  328. {
  329. lang_statement_header_type header;
  330. lang_statement_list_type children;
  331. } lang_group_statement_type;
  332. typedef struct
  333. {
  334. lang_statement_header_type header;
  335. const char *where;
  336. bfd_boolean is_before;
  337. } lang_insert_statement_type;
  338. typedef union lang_statement_union
  339. {
  340. lang_statement_header_type header;
  341. lang_wild_statement_type wild_statement;
  342. lang_data_statement_type data_statement;
  343. lang_reloc_statement_type reloc_statement;
  344. lang_address_statement_type address_statement;
  345. lang_output_section_statement_type output_section_statement;
  346. lang_assignment_statement_type assignment_statement;
  347. lang_input_statement_type input_statement;
  348. lang_target_statement_type target_statement;
  349. lang_output_statement_type output_statement;
  350. lang_input_section_type input_section;
  351. lang_common_statement_type common_statement;
  352. lang_object_symbols_statement_type object_symbols_statement;
  353. lang_fill_statement_type fill_statement;
  354. lang_padding_statement_type padding_statement;
  355. lang_group_statement_type group_statement;
  356. lang_insert_statement_type insert_statement;
  357. } lang_statement_union_type;
  358. /* This structure holds information about a program header, from the
  359. PHDRS command in the linker script. */
  360. struct lang_phdr
  361. {
  362. struct lang_phdr *next;
  363. const char *name;
  364. unsigned long type;
  365. bfd_boolean filehdr;
  366. bfd_boolean phdrs;
  367. etree_type *at;
  368. etree_type *flags;
  369. };
  370. /* This structure is used to hold a list of sections which may not
  371. cross reference each other. */
  372. typedef struct lang_nocrossref
  373. {
  374. struct lang_nocrossref *next;
  375. const char *name;
  376. } lang_nocrossref_type;
  377. /* The list of nocrossref lists. */
  378. struct lang_nocrossrefs
  379. {
  380. struct lang_nocrossrefs *next;
  381. lang_nocrossref_type *list;
  382. bfd_boolean onlyfirst;
  383. };
  384. /* This structure is used to hold a list of input section names which
  385. will not match an output section in the linker script. */
  386. struct unique_sections
  387. {
  388. struct unique_sections *next;
  389. const char *name;
  390. };
  391. /* Used by place_orphan to keep track of orphan sections and statements. */
  392. struct orphan_save
  393. {
  394. const char *name;
  395. flagword flags;
  396. lang_output_section_statement_type *os;
  397. asection **section;
  398. lang_statement_union_type **stmt;
  399. lang_output_section_statement_type **os_tail;
  400. };
  401. struct asneeded_minfo
  402. {
  403. struct asneeded_minfo *next;
  404. const char *soname;
  405. bfd *ref;
  406. const char *name;
  407. };
  408. extern struct lang_phdr *lang_phdr_list;
  409. extern struct lang_nocrossrefs *nocrossref_list;
  410. extern const char *output_target;
  411. extern lang_output_section_statement_type *abs_output_section;
  412. extern lang_statement_list_type lang_output_section_statement;
  413. extern struct lang_input_statement_flags input_flags;
  414. extern bfd_boolean lang_has_input_file;
  415. extern lang_statement_list_type *stat_ptr;
  416. extern bfd_boolean delete_output_file_on_failure;
  417. extern struct bfd_sym_chain entry_symbol;
  418. extern const char *entry_section;
  419. extern bfd_boolean entry_from_cmdline;
  420. extern lang_statement_list_type file_chain;
  421. extern lang_statement_list_type input_file_chain;
  422. extern int lang_statement_iteration;
  423. extern struct asneeded_minfo **asneeded_list_tail;
  424. extern void (*output_bfd_hash_table_free_fn) (struct bfd_link_hash_table *);
  425. extern void lang_init
  426. (void);
  427. extern void lang_finish
  428. (void);
  429. extern lang_memory_region_type * lang_memory_region_lookup
  430. (const char * const, bfd_boolean);
  431. extern void lang_memory_region_alias
  432. (const char *, const char *);
  433. extern void lang_map
  434. (void);
  435. extern void lang_set_flags
  436. (lang_memory_region_type *, const char *, int);
  437. extern void lang_add_output
  438. (const char *, int from_script);
  439. extern lang_output_section_statement_type *lang_enter_output_section_statement
  440. (const char *, etree_type *, enum section_type, etree_type *, etree_type *,
  441. etree_type *, int, int);
  442. extern void lang_final
  443. (void);
  444. extern void lang_relax_sections
  445. (bfd_boolean);
  446. extern void lang_process
  447. (void);
  448. extern void lang_section_start
  449. (const char *, union etree_union *, const segment_type *);
  450. extern void lang_add_entry
  451. (const char *, bfd_boolean);
  452. extern void lang_default_entry
  453. (const char *);
  454. extern void lang_add_target
  455. (const char *);
  456. extern void lang_add_wild
  457. (struct wildcard_spec *, struct wildcard_list *, bfd_boolean);
  458. extern void lang_add_map
  459. (const char *);
  460. extern void lang_add_fill
  461. (fill_type *);
  462. extern lang_assignment_statement_type *lang_add_assignment
  463. (union etree_union *);
  464. extern void lang_add_attribute
  465. (enum statement_enum);
  466. extern void lang_startup
  467. (const char *);
  468. extern void lang_float
  469. (bfd_boolean);
  470. extern void lang_leave_output_section_statement
  471. (fill_type *, const char *, lang_output_section_phdr_list *,
  472. const char *);
  473. extern void lang_statement_append
  474. (lang_statement_list_type *, lang_statement_union_type *,
  475. lang_statement_union_type **);
  476. extern void lang_for_each_input_file
  477. (void (*dothis) (lang_input_statement_type *));
  478. extern void lang_for_each_file
  479. (void (*dothis) (lang_input_statement_type *));
  480. extern void lang_reset_memory_regions
  481. (void);
  482. extern void lang_do_assignments
  483. (lang_phase_type);
  484. extern asection *section_for_dot
  485. (void);
  486. #define LANG_FOR_EACH_INPUT_STATEMENT(statement) \
  487. lang_input_statement_type *statement; \
  488. for (statement = (lang_input_statement_type *) file_chain.head; \
  489. statement != (lang_input_statement_type *) NULL; \
  490. statement = (lang_input_statement_type *) statement->next) \
  491. #define lang_output_section_find(NAME) \
  492. lang_output_section_statement_lookup (NAME, 0, FALSE)
  493. extern void lang_process
  494. (void);
  495. extern void ldlang_add_file
  496. (lang_input_statement_type *);
  497. extern lang_output_section_statement_type *lang_output_section_find_by_flags
  498. (const asection *, flagword, lang_output_section_statement_type **,
  499. lang_match_sec_type_func);
  500. extern lang_output_section_statement_type *lang_insert_orphan
  501. (asection *, const char *, int, lang_output_section_statement_type *,
  502. struct orphan_save *, etree_type *, lang_statement_list_type *);
  503. extern lang_input_statement_type *lang_add_input_file
  504. (const char *, lang_input_file_enum_type, const char *);
  505. extern void lang_add_keepsyms_file
  506. (const char *);
  507. extern lang_output_section_statement_type *lang_output_section_get
  508. (const asection *);
  509. extern lang_output_section_statement_type *lang_output_section_statement_lookup
  510. (const char *, int, bfd_boolean);
  511. extern lang_output_section_statement_type *next_matching_output_section_statement
  512. (lang_output_section_statement_type *, int);
  513. extern void ldlang_add_undef
  514. (const char *const, bfd_boolean);
  515. extern void ldlang_add_require_defined
  516. (const char *const);
  517. extern void lang_add_output_format
  518. (const char *, const char *, const char *, int);
  519. extern void lang_list_init
  520. (lang_statement_list_type *);
  521. extern void push_stat_ptr
  522. (lang_statement_list_type *);
  523. extern void pop_stat_ptr
  524. (void);
  525. extern void lang_add_data
  526. (int type, union etree_union *);
  527. extern void lang_add_reloc
  528. (bfd_reloc_code_real_type, reloc_howto_type *, asection *, const char *,
  529. union etree_union *);
  530. extern void lang_for_each_statement
  531. (void (*) (lang_statement_union_type *));
  532. extern void lang_for_each_statement_worker
  533. (void (*) (lang_statement_union_type *), lang_statement_union_type *);
  534. extern void *stat_alloc
  535. (size_t);
  536. extern void strip_excluded_output_sections
  537. (void);
  538. extern void lang_clear_os_map
  539. (void);
  540. extern void dprint_statement
  541. (lang_statement_union_type *, int);
  542. extern void lang_size_sections
  543. (bfd_boolean *, bfd_boolean);
  544. extern void one_lang_size_sections_pass
  545. (bfd_boolean *, bfd_boolean);
  546. extern void lang_add_insert
  547. (const char *, int);
  548. extern void lang_enter_group
  549. (void);
  550. extern void lang_leave_group
  551. (void);
  552. extern void lang_add_section
  553. (lang_statement_list_type *, asection *,
  554. struct flag_info *, lang_output_section_statement_type *);
  555. extern void lang_new_phdr
  556. (const char *, etree_type *, bfd_boolean, bfd_boolean, etree_type *,
  557. etree_type *);
  558. extern void lang_add_nocrossref
  559. (lang_nocrossref_type *);
  560. extern void lang_add_nocrossref_to
  561. (lang_nocrossref_type *);
  562. extern void lang_enter_overlay
  563. (etree_type *, etree_type *);
  564. extern void lang_enter_overlay_section
  565. (const char *);
  566. extern void lang_leave_overlay_section
  567. (fill_type *, lang_output_section_phdr_list *);
  568. extern void lang_leave_overlay
  569. (etree_type *, int, fill_type *, const char *,
  570. lang_output_section_phdr_list *, const char *);
  571. extern struct bfd_elf_version_expr *lang_new_vers_pattern
  572. (struct bfd_elf_version_expr *, const char *, const char *, bfd_boolean);
  573. extern struct bfd_elf_version_tree *lang_new_vers_node
  574. (struct bfd_elf_version_expr *, struct bfd_elf_version_expr *);
  575. extern struct bfd_elf_version_deps *lang_add_vers_depend
  576. (struct bfd_elf_version_deps *, const char *);
  577. extern void lang_register_vers_node
  578. (const char *, struct bfd_elf_version_tree *, struct bfd_elf_version_deps *);
  579. extern void lang_append_dynamic_list (struct bfd_elf_version_expr *);
  580. extern void lang_append_dynamic_list_cpp_typeinfo (void);
  581. extern void lang_append_dynamic_list_cpp_new (void);
  582. extern void lang_add_unique
  583. (const char *);
  584. extern const char *lang_get_output_target
  585. (void);
  586. extern void add_excluded_libs (const char *);
  587. extern bfd_boolean load_symbols
  588. (lang_input_statement_type *, lang_statement_list_type *);
  589. extern bfd_boolean
  590. ldlang_override_segment_assignment
  591. (struct bfd_link_info *, bfd *, asection *, asection *, bfd_boolean);
  592. extern void
  593. lang_ld_feature (char *);
  594. extern void
  595. lang_print_memory_usage (void);
  596. extern void
  597. lang_add_gc_name (const char *);
  598. #endif