[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/28006] New: Linking 32-bit x86 binaries using gold drops the .
From: |
nickc at redhat dot com |
Subject: |
[Bug gold/28006] New: Linking 32-bit x86 binaries using gold drops the .note.gnu.property section |
Date: |
Tue, 22 Jun 2021 15:15:37 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28006
Bug ID: 28006
Summary: Linking 32-bit x86 binaries using gold drops the
.note.gnu.property section
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: nickc at redhat dot com
CC: ian at airs dot com
Target Milestone: ---
Created attachment 13511
--> https://sourceware.org/bugzilla/attachment.cgi?id=13511&action=edit
Proposed patch
When linking 32-bit x86 binaries using the gold linker the .note.gnu.property
section is not created. The BFD linker on the other hand does create the
section.
For example:
% gcc -fcf-protection -m32 hello.c
% readelf --notes a.out | grep SHSTK
Properties: x86 feature: IBT, SHSTK
% gcc -fcf-protection -m32 hello.c -fuse-ld=gold
% readelf --notes a.out | grep SHSTK
%
A suggested patch is attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/28006] New: Linking 32-bit x86 binaries using gold drops the .note.gnu.property section,
nickc at redhat dot com <=