summaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2011-09-20 04:58:55 +0000
committerAlan Modra <amodra@bigpond.net.au>2011-09-20 04:58:55 +0000
commit08f37e4536a319cf1624da42ad30bac34bbf9dea (patch)
tree4372dae5559d13d3c411b479b57416e388fd8005 /ld/ldlang.h
parent05cf284e625379f5656f95e2e9cde619d40dda23 (diff)
downloadbinutils-redhat-08f37e4536a319cf1624da42ad30bac34bbf9dea.tar.gz
PR ld/12301
* ldlang.h (lang_input_statement_type): Add "reload" bitfield. Clarify comments. * ldlang.c (new_afile): Init new field. (load_symbols): Don't call ldlang_add_file when reloading. (open_input_bfds): Reload as-needed libs during plugin rescan.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 533fe74438..95f94128b3 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -270,12 +270,13 @@ typedef struct lang_input_statement_struct
/* Whether to search for this entry as a dynamic archive. */
unsigned int dynamic : 1;
- /* Whether DT_NEEDED tags should be added for dynamic libraries in
- DT_NEEDED tags from this entry. */
+ /* Set if a DT_NEEDED tag should be added not just for the dynamic library
+ explicitly given by this entry but also for any dynamic libraries in
+ this entry's needed list. */
unsigned int add_DT_NEEDED_for_dynamic : 1;
- /* Whether this entry should cause a DT_NEEDED tag only when
- satisfying references from regular files, or always. */
+ /* Set if this entry should cause a DT_NEEDED tag only when some
+ regular file references its symbols (ie. --as-needed is in effect). */
unsigned int add_DT_NEEDED_for_regular : 1;
/* Whether to include the entire contents of an archive. */
@@ -295,6 +296,9 @@ typedef struct lang_input_statement_struct
/* Set if the file was claimed from an archive. */
unsigned int claim_archive : 1;
+
+ /* Set if reloading an --as-needed lib. */
+ unsigned int reload : 1;
#endif /* ENABLE_PLUGINS */
} lang_input_statement_type;