diff options
| author | Ulrich Drepper <[email protected]> | 2006-06-10 06:33:00 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2006-06-10 06:33:00 +0000 |
| commit | a688a732b671263838c2cd056ab5dbb71be91468 (patch) | |
| tree | c0f222b2c1b7ae6d088d75f738350ba2e47b773b /src/ld.c | |
| parent | bdb29c0b5613ecda012edfd291765f17da3939da (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
