Bug 2332932 - section `.note.gnu.property' can't be allocated in segment 0
Summary: section `.note.gnu.property' can't be allocated in segment 0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: 41
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-17 22:40 UTC by Stas Sergeev
Modified: 2024-12-19 09:30 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-12-19 09:30:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
test-case (506.07 KB, application/gzip)
2024-12-17 22:40 UTC, Stas Sergeev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Sourceware 32460 0 P2 RESOLVED section `.note.gnu.property' can't be allocated in segment 0 2024-12-17 22:40:36 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.