bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/28902] ld: `not found for insert` error has a weird ordering


From: i at maskray dot me
Subject: [Bug ld/28902] ld: `not found for insert` error has a weird ordering
Date: Thu, 17 Feb 2022 01:57:17 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28902

--- Comment #1 from Fangrui Song <i at maskray dot me> ---
(I don't have a Fedora machine and I know very little about systemd.)
I was asked why lld doesn't support -dT. I have dug up and found

https://github.com/systemd/package-notes/blob/main/rpm/macros.package-notes-srpm#L52

%_package_note_flags    %[%_package_note_status?"-Wl,%["%_package_note_linker"
!= "lld"?"-dT":"-T"],%{_package_note_file}":""]

According to Debian Code Search (
https://codesearch.debian.net/search?q=%5B-%5D%5B-%5Ddefault-script&literal=0&page=1),
no project uses `--default-script` or `Wl,-dT`.

> ld.bfd a.o -T a.lds -dT insert-note.lds --build-id  # ok

I suspect this is the reason
https://github.com/systemd/package-notes/blob/main/rpm/macros.package-notes-srpm#L52
uses -dT. But this appears as an ill advice to me, working around a problem
with an obscure option, instead of making the ld maintainer aware of the
problem.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]