Bug 2332932

Summary: section `.note.gnu.property' can't be allocated in segment 0
Product: [Fedora] Fedora Reporter: Stas Sergeev <stsp2>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: dvlasenk, fweimer, hjl.tools, jakub, josmyers, nickc, sipoyare, suraj.ghimire7, yahmad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-19 09:30:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test-case none

Description Stas Sergeev 2024-12-17 22:40:37 UTC
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.

Comment 1 H.J. Lu 2024-12-17 22:49:21 UTC
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

Comment 2 H.J. Lu 2024-12-17 22:52:44 UTC
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

Comment 3 Nick Clifton 2024-12-19 09:30:05 UTC
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.