summaryrefslogtreecommitdiffstats
path: root/src/ld.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2006-06-10 06:33:00 +0000
committerUlrich Drepper <[email protected]>2006-06-10 06:33:00 +0000
commita688a732b671263838c2cd056ab5dbb71be91468 (patch)
treec0f222b2c1b7ae6d088d75f738350ba2e47b773b /src/ld.c
parentbdb29c0b5613ecda012edfd291765f17da3939da (diff)
* i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries
for PLT entries if there is no local definition. * ld.c (parse_option): Handle -z ignore like --as-needed and -z record like --no-as-needed. * ld.h (struct ld_state): Remove ignore_unused_dsos field. * ldgeneric.c (new_generated_scn): Always compute ndt_needed by looping over DSOs. When deciding about adding DT_NEEDED entries use ->as_needed instead of ignore_unused_dsos.
Diffstat (limited to 'src/ld.c')
-rw-r--r--src/ld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ld.c b/src/ld.c
index 99190df9..53386569 100644
--- a/src/ld.c
+++ b/src/ld.c
@@ -926,9 +926,9 @@ parse_z_option (const char *arg)
&& ld_state.file_type == dso_file_type)
ld_state.dt_flags_1 |= DF_1_NOOPEN;
else if (strcmp (arg, "ignore") == 0)
- ld_state.ignore_unused_dsos = true;
+ ld_state.as_needed = true;
else if (strcmp (arg, "record") == 0)
- ld_state.ignore_unused_dsos = false;
+ ld_state.as_needed = false;
else if (strcmp (arg, "systemlibrary") == 0)
ld_state.is_system_library = true;
else if (strcmp (arg, "allextract") != 0