Created attachment 2062934 [details] test-case Description of problem: Linking the shared lib and the doing: objcopy --only-keep-debug libtmp.so tmp.dbg gives this strange error msg. Please see https://sourceware.org/bugzilla/show_bug.cgi?id=32460 for HjL's analysis. He thinks its a fedora-specific bug. Version-Release number of selected component (if applicable): GNU ld version 2.43.1-4.fc41 How reproducible: Easily Steps to Reproduce: 1. untar the test case 2. ./link.sh Actual results: objcopy: tmp.dbg: section `.note.gnu.property' can't be allocated in segment 0 LOAD: .init .plt .text .fini .note.gnu.property (the resulting file is however created) Expected results: No error. Additional info: In the upstream URL.
May be fixed in binutils 2.43.1-5.fc41 by commit 8db331e7cb2457e7921c1626d0c80669875d3b7f Author: Nick Clifton <nickc> Date: Fri Dec 13 13:41:22 2024 +0000 Restore the .note.build-id section placement patch. Resolves: #2331487
It is fixed in binutils 2.43.1-5.fc41 by commit 8db331e7cb2457e7921c1626d0c80669875d3b7f Author: Nick Clifton <nickc> Date: Fri Dec 13 13:41:22 2024 +0000 Restore the .note.build-id section placement patch. Resolves: #2331487
Thanks for checking this H.J. (And sorry for causing the issue in the first place by accidentally deleteing the .note/build-id placement patch). I will close this BZ, but of course it can be re-opneed if necessary.