https://sourceware.org/bugzilla/show_bug.cgi?id=23494
Bug ID: 23494
Summary: .note.gnu.property section isn't properly converted
Product: binutils
Version: 2.32 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
Target: x86-64
[hjl@gnu-tools-1 tmp]$ cat x.s
.section ".note.gnu.property", "a"
.p2align 3
.long 1f - 0f /* name length. */
.long 4f - 1f /* data length. */
/* NT_GNU_PROPERTY_TYPE_0 */
.long 5 /* note type. */
0:
.asciz "GNU" /* vendor name. */
1:
.p2align 3
/* GNU_PROPERTY_X86_ISA_1_NEEDED */
.long 0xc0000001 /* pr_type. */
.long 3f - 2f /* pr_datasz. */
2:
.long 0x3
3:
.p2align 3
4:
[hjl@gnu-tools-1 tmp]$ gcc -c x.s
[hjl@gnu-tools-1 tmp]$ objcopy -O elf32-x86-64 x.o x32.o
[hjl@gnu-tools-1 tmp]$ ld -shared -melf32_x86_64 x32.o
ld: warning: x32.o: corrupt GNU_PROPERTY_TYPE (5) size: 0x10
[hjl@gnu-tools-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