aboutsummaryrefslogtreecommitdiff
path: root/ld/ldelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-10-26 08:57:49 +1030
committerAlan Modra <amodra@gmail.com>2024-10-26 10:25:38 +1030
commit6ecc44f6980c0f8c0f0934bc10412c1d7fa3c544 (patch)
tree295df2ab4dbdc9efc584a5e87073bf754d85ff61 /ld/ldelf.c
parent3d17c8817216343179f64d1a682311a70774ccb4 (diff)
downloadgdb-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/ldelf.c')
-rw-r--r--ld/ldelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/ldelf.c b/ld/ldelf.c
index 2371af3..54cdf45 100644
--- a/ld/ldelf.c
+++ b/ld/ldelf.c
@@ -1170,7 +1170,7 @@ ldelf_handle_dt_needed (struct elf_link_hash_table *htab,
{
char *filename;
- if (search->source != search_dir_linker_script)
+ if (search->cmdline)
continue;
filename = (char *) xmalloc (strlen (search->name) + len + 2);
sprintf (filename, "%s/%s", search->name, l->name);