ldlang.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. /* ldlang.h - linker command language support
  2. Copyright (C) 1991-2015 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. walk_wild_section_handler_t walk_wild_section_handler;
  303. struct wildcard_list *handler_data[4];
  304. lang_section_bst_type *tree;
  305. struct flag_info *section_flag_list;
  306. };
  307. typedef struct lang_address_statement_struct
  308. {
  309. lang_statement_header_type header;
  310. const char *section_name;
  311. union etree_union *address;
  312. const segment_type *segment;
  313. } lang_address_statement_type;
  314. typedef struct
  315. {
  316. lang_statement_header_type header;
  317. bfd_vma output_offset;
  318. bfd_size_type size;
  319. asection *output_section;
  320. fill_type *fill;
  321. } lang_padding_statement_type;
  322. /* A group statement collects a set of libraries together. The
  323. libraries are searched multiple times, until no new undefined
  324. symbols are found. The effect is to search a group of libraries as
  325. though they were a single library. */
  326. typedef struct
  327. {
  328. lang_statement_header_type header;
  329. lang_statement_list_type children;
  330. } lang_group_statement_type;
  331. typedef struct
  332. {
  333. lang_statement_header_type header;
  334. const char *where;
  335. bfd_boolean is_before;
  336. } lang_insert_statement_type;
  337. typedef union lang_statement_union
  338. {
  339. lang_statement_header_type header;
  340. lang_wild_statement_type wild_statement;
  341. lang_data_statement_type data_statement;
  342. lang_reloc_statement_type reloc_statement;
  343. lang_address_statement_type address_statement;
  344. lang_output_section_statement_type output_section_statement;
  345. lang_assignment_statement_type assignment_statement;
  346. lang_input_statement_type input_statement;
  347. lang_target_statement_type target_statement;
  348. lang_output_statement_type output_statement;
  349. lang_input_section_type input_section;
  350. lang_common_statement_type common_statement;
  351. lang_object_symbols_statement_type object_symbols_statement;
  352. lang_fill_statement_type fill_statement;
  353. lang_padding_statement_type padding_statement;
  354. lang_group_statement_type group_statement;
  355. lang_insert_statement_type insert_statement;
  356. } lang_statement_union_type;
  357. /* This structure holds information about a program header, from the
  358. PHDRS command in the linker script. */
  359. struct lang_phdr
  360. {
  361. struct lang_phdr *next;
  362. const char *name;
  363. unsigned long type;
  364. bfd_boolean filehdr;
  365. bfd_boolean phdrs;
  366. etree_type *at;
  367. etree_type *flags;
  368. };
  369. /* This structure is used to hold a list of sections which may not
  370. cross reference each other. */
  371. typedef struct lang_nocrossref
  372. {
  373. struct lang_nocrossref *next;
  374. const char *name;
  375. } lang_nocrossref_type;
  376. /* The list of nocrossref lists. */
  377. struct lang_nocrossrefs
  378. {
  379. struct lang_nocrossrefs *next;
  380. lang_nocrossref_type *list;
  381. };
  382. /* This structure is used to hold a list of input section names which
  383. will not match an output section in the linker script. */
  384. struct unique_sections
  385. {
  386. struct unique_sections *next;
  387. const char *name;
  388. };
  389. /* Used by place_orphan to keep track of orphan sections and statements. */
  390. struct orphan_save
  391. {
  392. const char *name;
  393. flagword flags;
  394. lang_output_section_statement_type *os;
  395. asection **section;
  396. lang_statement_union_type **stmt;
  397. lang_output_section_statement_type **os_tail;
  398. };
  399. struct asneeded_minfo
  400. {
  401. struct asneeded_minfo *next;
  402. const char *soname;
  403. bfd *ref;
  404. const char *name;
  405. };
  406. extern struct lang_phdr *lang_phdr_list;
  407. extern struct lang_nocrossrefs *nocrossref_list;
  408. extern const char *output_target;
  409. extern lang_output_section_statement_type *abs_output_section;
  410. extern lang_statement_list_type lang_output_section_statement;
  411. extern struct lang_input_statement_flags input_flags;
  412. extern bfd_boolean lang_has_input_file;
  413. extern lang_statement_list_type *stat_ptr;
  414. extern bfd_boolean delete_output_file_on_failure;
  415. extern struct bfd_sym_chain entry_symbol;
  416. extern const char *entry_section;
  417. extern bfd_boolean entry_from_cmdline;
  418. extern lang_statement_list_type file_chain;
  419. extern lang_statement_list_type input_file_chain;
  420. extern int lang_statement_iteration;
  421. extern struct asneeded_minfo **asneeded_list_tail;
  422. extern void (*output_bfd_hash_table_free_fn) (struct bfd_link_hash_table *);
  423. extern void lang_init
  424. (void);
  425. extern void lang_finish
  426. (void);
  427. extern lang_memory_region_type * lang_memory_region_lookup
  428. (const char * const, bfd_boolean);
  429. extern void lang_memory_region_alias
  430. (const char *, const char *);
  431. extern void lang_map
  432. (void);
  433. extern void lang_set_flags
  434. (lang_memory_region_type *, const char *, int);
  435. extern void lang_add_output
  436. (const char *, int from_script);
  437. extern lang_output_section_statement_type *lang_enter_output_section_statement
  438. (const char *, etree_type *, enum section_type, etree_type *, etree_type *,
  439. etree_type *, int, int);
  440. extern void lang_final
  441. (void);
  442. extern void lang_relax_sections
  443. (bfd_boolean);
  444. extern void lang_process
  445. (void);
  446. extern void lang_section_start
  447. (const char *, union etree_union *, const segment_type *);
  448. extern void lang_add_entry
  449. (const char *, bfd_boolean);
  450. extern void lang_default_entry
  451. (const char *);
  452. extern void lang_add_target
  453. (const char *);
  454. extern void lang_add_wild
  455. (struct wildcard_spec *, struct wildcard_list *, bfd_boolean);
  456. extern void lang_add_map
  457. (const char *);
  458. extern void lang_add_fill
  459. (fill_type *);
  460. extern lang_assignment_statement_type *lang_add_assignment
  461. (union etree_union *);
  462. extern void lang_add_attribute
  463. (enum statement_enum);
  464. extern void lang_startup
  465. (const char *);
  466. extern void lang_float
  467. (bfd_boolean);
  468. extern void lang_leave_output_section_statement
  469. (fill_type *, const char *, lang_output_section_phdr_list *,
  470. const char *);
  471. extern void lang_statement_append
  472. (lang_statement_list_type *, lang_statement_union_type *,
  473. lang_statement_union_type **);
  474. extern void lang_for_each_input_file
  475. (void (*dothis) (lang_input_statement_type *));
  476. extern void lang_for_each_file
  477. (void (*dothis) (lang_input_statement_type *));
  478. extern void lang_reset_memory_regions
  479. (void);
  480. extern void lang_do_assignments
  481. (lang_phase_type);
  482. extern asection *section_for_dot
  483. (void);
  484. #define LANG_FOR_EACH_INPUT_STATEMENT(statement) \
  485. lang_input_statement_type *statement; \
  486. for (statement = (lang_input_statement_type *) file_chain.head; \
  487. statement != (lang_input_statement_type *) NULL; \
  488. statement = (lang_input_statement_type *) statement->next) \
  489. #define lang_output_section_find(NAME) \
  490. lang_output_section_statement_lookup (NAME, 0, FALSE)
  491. extern void lang_process
  492. (void);
  493. extern void ldlang_add_file
  494. (lang_input_statement_type *);
  495. extern lang_output_section_statement_type *lang_output_section_find_by_flags
  496. (const asection *, lang_output_section_statement_type **,
  497. lang_match_sec_type_func);
  498. extern lang_output_section_statement_type *lang_insert_orphan
  499. (asection *, const char *, int, lang_output_section_statement_type *,
  500. struct orphan_save *, etree_type *, lang_statement_list_type *);
  501. extern lang_input_statement_type *lang_add_input_file
  502. (const char *, lang_input_file_enum_type, const char *);
  503. extern void lang_add_keepsyms_file
  504. (const char *);
  505. extern lang_output_section_statement_type *lang_output_section_get
  506. (const asection *);
  507. extern lang_output_section_statement_type *lang_output_section_statement_lookup
  508. (const char *, int, bfd_boolean);
  509. extern lang_output_section_statement_type *next_matching_output_section_statement
  510. (lang_output_section_statement_type *, int);
  511. extern void ldlang_add_undef
  512. (const char *const, bfd_boolean);
  513. extern void ldlang_add_require_defined
  514. (const char *const);
  515. extern void lang_add_output_format
  516. (const char *, const char *, const char *, int);
  517. extern void lang_list_init
  518. (lang_statement_list_type *);
  519. extern void push_stat_ptr
  520. (lang_statement_list_type *);
  521. extern void pop_stat_ptr
  522. (void);
  523. extern void lang_add_data
  524. (int type, union etree_union *);
  525. extern void lang_add_reloc
  526. (bfd_reloc_code_real_type, reloc_howto_type *, asection *, const char *,
  527. union etree_union *);
  528. extern void lang_for_each_statement
  529. (void (*) (lang_statement_union_type *));
  530. extern void lang_for_each_statement_worker
  531. (void (*) (lang_statement_union_type *), lang_statement_union_type *);
  532. extern void *stat_alloc
  533. (size_t);
  534. extern void strip_excluded_output_sections
  535. (void);
  536. extern void lang_clear_os_map
  537. (void);
  538. extern void dprint_statement
  539. (lang_statement_union_type *, int);
  540. extern void lang_size_sections
  541. (bfd_boolean *, bfd_boolean);
  542. extern void one_lang_size_sections_pass
  543. (bfd_boolean *, bfd_boolean);
  544. extern void lang_add_insert
  545. (const char *, int);
  546. extern void lang_enter_group
  547. (void);
  548. extern void lang_leave_group
  549. (void);
  550. extern void lang_add_section
  551. (lang_statement_list_type *, asection *,
  552. struct flag_info *, lang_output_section_statement_type *);
  553. extern void lang_new_phdr
  554. (const char *, etree_type *, bfd_boolean, bfd_boolean, etree_type *,
  555. etree_type *);
  556. extern void lang_add_nocrossref
  557. (lang_nocrossref_type *);
  558. extern void lang_enter_overlay
  559. (etree_type *, etree_type *);
  560. extern void lang_enter_overlay_section
  561. (const char *);
  562. extern void lang_leave_overlay_section
  563. (fill_type *, lang_output_section_phdr_list *);
  564. extern void lang_leave_overlay
  565. (etree_type *, int, fill_type *, const char *,
  566. lang_output_section_phdr_list *, const char *);
  567. extern struct bfd_elf_version_expr *lang_new_vers_pattern
  568. (struct bfd_elf_version_expr *, const char *, const char *, bfd_boolean);
  569. extern struct bfd_elf_version_tree *lang_new_vers_node
  570. (struct bfd_elf_version_expr *, struct bfd_elf_version_expr *);
  571. extern struct bfd_elf_version_deps *lang_add_vers_depend
  572. (struct bfd_elf_version_deps *, const char *);
  573. extern void lang_register_vers_node
  574. (const char *, struct bfd_elf_version_tree *, struct bfd_elf_version_deps *);
  575. extern void lang_append_dynamic_list (struct bfd_elf_version_expr *);
  576. extern void lang_append_dynamic_list_cpp_typeinfo (void);
  577. extern void lang_append_dynamic_list_cpp_new (void);
  578. extern void lang_add_unique
  579. (const char *);
  580. extern const char *lang_get_output_target
  581. (void);
  582. extern void add_excluded_libs (const char *);
  583. extern bfd_boolean load_symbols
  584. (lang_input_statement_type *, lang_statement_list_type *);
  585. extern bfd_boolean
  586. ldlang_override_segment_assignment
  587. (struct bfd_link_info *, bfd *, asection *, asection *, bfd_boolean);
  588. extern void
  589. lang_ld_feature (char *);
  590. extern void
  591. lang_print_memory_usage (void);
  592. #endif