https://sourceware.org/bugzilla/show_bug.cgi?id=23929
Bug ID: 23929
Summary: Missing .note.gnu.property with -flto
Product: binutils
Version: 2.32 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
[hjl@gnu-skx-1 tmp]$ cat x.c
#include <stdio.h>
int
main ()
{
printf ("hello\n");
}
[hjl@gnu-skx-1 tmp]$ gcc x.c -Wa,-mx86-used-note=yes
[hjl@gnu-skx-1 tmp]$ readelf -n a.out | head
readelf: Warning: Gap in build notes detected from 0x401127 to 0x40113f
Displaying notes found in: .note.gnu.property
Owner Data size Description
GNU 0x00000028 NT_GNU_PROPERTY_TYPE_0
Properties: by linker
x86 ISA used: <None>
x86 feature used: x86
Displaying notes found in: .note.gnu.build-id
Owner Data size Description
[hjl@gnu-skx-1 tmp]$ gcc x.c -Wa,-mx86-used-note=yes -flto
[hjl@gnu-skx-1 tmp]$ readelf -n a.out | head
readelf: Warning: Displaying notes found in: .note.gnu.build-id
Gap in build notes detected from 0x401127 to 0x40113f
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID
bitstring)
Build ID: 6dd93c6a82611f13fcfcb0643b51077e49f27bcb
Displaying notes found in: .note.ABI-tag
Owner Data size Description
GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
OS: Linux, ABI: 3.2.0
[hjl@gnu-skx-1 tmp]$
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils