[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23372] New: Empty GNU_PROPERTY_X86_ISA_1_NEEDED/GNU_PROPERTY_X86
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/23372] New: Empty GNU_PROPERTY_X86_ISA_1_NEEDED/GNU_PROPERTY_X86_ISA_1_USED aren't removed |
Date: |
Thu, 05 Jul 2018 09:11:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23372
Bug ID: 23372
Summary: Empty
GNU_PROPERTY_X86_ISA_1_NEEDED/GNU_PROPERTY_X86_ISA_1_U
SED aren't removed
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: ---
Target: i386,x86-64
address@hidden property-5]$ cat x.S
#if __SIZEOF_PTRDIFF_T__ == 8
# define ALIGN 3
#elif __SIZEOF_PTRDIFF_T__ == 4
# define ALIGN 2
#endif
.section ".note.gnu.property", "a"
.p2align ALIGN
.long 1f - 0f /* name length. */
.long 3f - 1f /* data length. */
/* NT_GNU_PROPERTY_TYPE_0 */
.long 5 /* note type. */
0:
.asciz "GNU" /* vendor name. */
1:
.p2align ALIGN
/* GNU_PROPERTY_STACK_SIZE */
.long 1 /* pr_type. */
.long 5f - 4f /* pr_datasz. */
4:
.dc.a 0x600000 /* Stack size. */
5:
.p2align ALIGN
/* GNU_PROPERTY_X86_ISA_1_USED */
.long 0xc0000000 /* pr_type. */
.long 5f - 4f /* pr_datasz. */
4:
.long 0
5:
.p2align ALIGN
/* GNU_PROPERTY_X86_ISA_1_NEEDED */
.long 0xc0000001 /* pr_type. */
.long 5f - 4f /* pr_datasz. */
4:
.long 0
5:
.p2align ALIGN
3:
address@hidden property-5]$ gcc -c x.S
address@hidden property-5]$ ld -r x.o
address@hidden property-5]$ readelf -n a.out
Displaying notes found in: .note.gnu.property
Owner Data size Description
GNU 0x00000030 NT_GNU_PROPERTY_TYPE_0
Properties: stack size: 0x600000
x86 ISA used:
x86 ISA needed:
address@hidden property-5]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/23372] New: Empty GNU_PROPERTY_X86_ISA_1_NEEDED/GNU_PROPERTY_X86_ISA_1_USED aren't removed,
hjl.tools at gmail dot com <=