diff options
author | Alan Modra <amodra@gmail.com> | 2024-10-26 08:57:49 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-10-26 10:25:38 +1030 |
commit | 6ecc44f6980c0f8c0f0934bc10412c1d7fa3c544 (patch) | |
tree | 295df2ab4dbdc9efc584a5e87073bf754d85ff61 /ld/plugin.c | |
parent | 3d17c8817216343179f64d1a682311a70774ccb4 (diff) | |
download | gdb-6ecc44f6980c0f8c0f0934bc10412c1d7fa3c544.zip gdb-6ecc44f6980c0f8c0f0934bc10412c1d7fa3c544.tar.gz gdb-6ecc44f6980c0f8c0f0934bc10412c1d7fa3c544.tar.bz2 |
PR32300, --dependency-file: link dependencies are not all collected
PR 32300
PR 31904
Revert patch accidentally committed with 057a2b4c4b
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 34ae3a0..2cd0279 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -933,7 +933,7 @@ add_input_file (const char *pathname) NULL); if (!is) return LDPS_ERR; - is->plugin = called_plugin; + is->flags.lto_output = 1; return LDPS_OK; } @@ -948,23 +948,17 @@ add_input_library (const char *pathname) NULL); if (!is) return LDPS_ERR; - is->plugin = called_plugin; + is->flags.lto_output = 1; return LDPS_OK; } /* Set the extra library path to be used by libraries added via add_input_library. */ - static enum ld_plugin_status set_extra_library_path (const char *path) { - search_dirs_type * sdt; - ASSERT (called_plugin); - sdt = ldfile_add_library_path (xstrdup (path), search_dir_plugin); - if (sdt == NULL) - return LDPS_ERR; - sdt->plugin = called_plugin; + ldfile_add_library_path (xstrdup (path), false); return LDPS_OK; } |