aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-01-14 04:36:35 +0000
committerAlan Modra <amodra@gmail.com>2001-01-14 04:36:35 +0000
commit577a062318714628709c41467904c0cb7b212f94 (patch)
treefe95014262d6fb594ac3cf4858c44773f19e1079 /ld/ldlang.h
parentb9d79e0379726fd6d072b987a30f3f8bed4985e4 (diff)
downloadgdb-577a062318714628709c41467904c0cb7b212f94.zip
gdb-577a062318714628709c41467904c0cb7b212f94.tar.gz
gdb-577a062318714628709c41467904c0cb7b212f94.tar.bz2
Extend "ld --unique" functionality.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index d327bd3..ac0fd28 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -1,5 +1,5 @@
/* ldlang.h - linker command language support
- Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+ Copyright 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -340,6 +340,16 @@ struct lang_nocrossrefs {
extern struct lang_nocrossrefs *nocrossref_list;
+/* This structure is used to hold a list of input section names which
+ will not match an output section in the linker script. */
+
+struct unique_sections {
+ struct unique_sections *next;
+ const char *name;
+};
+
+extern struct unique_sections *unique_section_list;
+
extern lang_output_section_statement_type *abs_output_section;
extern lang_statement_list_type lang_output_section_statement;
extern boolean lang_has_input_file;
@@ -462,5 +472,7 @@ extern struct bfd_elf_version_deps *lang_add_vers_depend
extern void lang_register_vers_node
PARAMS ((const char *, struct bfd_elf_version_tree *,
struct bfd_elf_version_deps *));
+boolean unique_section_p PARAMS ((const char *));
+extern void lang_add_unique PARAMS ((const char *));
#endif