summaryrefslogtreecommitdiffstats
path: root/src/ld.h
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2006-05-31 15:50:43 +0000
committerUlrich Drepper <[email protected]>2006-05-31 15:50:43 +0000
commit8c56fe3b2c753234beb6f58a81c8b96f008226ef (patch)
treed61ffb7018be1081e3bba89ba3e7c17338509259 /src/ld.h
parentdf72c45805a859891ed0dcb854ee766f8ebef372 (diff)
Handle as-needed options.
Diffstat (limited to 'src/ld.h')
-rw-r--r--src/ld.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ld.h b/src/ld.h
index 3de257ca..47354cbe 100644
--- a/src/ld.h
+++ b/src/ld.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2005 Red Hat, Inc.
+/* Copyright (C) 2001, 2002, 2003, 2005, 2006 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 2001.
@@ -115,6 +115,10 @@ struct usedfiles
used in a reference. */
bool used;
+ /* True when file should be added to DT_NEEDED list only when
+ directly referenced. */
+ bool as_needed;
+
/* If nonzero this is the archive sequence number which can be used to
determine whether back refernces from -( -) or GROUP statements
have to be followed. */
@@ -791,6 +795,10 @@ struct ld_state
/* If true static linking is requested. */
bool statically;
+ /* If true, add DT_NEEDED entries for following files if they are
+ needed. */
+ bool as_needed;
+
/* How to extract elements from archives. */
enum extract_rule extract_rule;