[Bug ld/32300] --dependency-file: link dependencies are not all collected

2024-10-25 Thread marc.chevrier at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32300

--- Comment #1 from Marc CHEVRIER  ---
This regression seems related to commit 057a2b4c4b5, 2024-06-26,
binutils-2_43~266.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/32300] New: --dependency-file: link dependencies are not all collected

2024-10-25 Thread marc.chevrier at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32300

Bug ID: 32300
   Summary: --dependency-file: link dependencies are not all
collected
   Product: binutils
   Version: 2.43
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: marc.chevrier at gmail dot com
  Target Milestone: ---

Created attachment 15761
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15761&action=edit
Minimal project to reproduce the --dependency-file problem

ld 2.43, --dependency-file option does not provide all dependencies. Project
objects and libraries are especially missing.
This is a regression compared to version 2.42.

Attached is a small project reproducing the problem. Included are the files
link.2.42.d and link2.43.d produced, respectively, by ld versions 2.42.and
2.43.

In this project, the link step for the target main requires files main.o and
libfoo.so. In 2.43, these files are missing for the dependencies file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.