bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23494] New: .note.gnu.property section isn't properly conv


From: hjl.tools at gmail dot com
Subject: [Bug binutils/23494] New: .note.gnu.property section isn't properly converted
Date: Wed, 08 Aug 2018 13:00:38 +0000

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

address@hidden 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:
address@hidden tmp]$ gcc -c x.s
address@hidden tmp]$ objcopy -O elf32-x86-64 x.o x32.o
address@hidden tmp]$ ld -shared -melf32_x86_64 x32.o
ld: warning: x32.o: corrupt GNU_PROPERTY_TYPE (5) size: 0x10
address@hidden tmp]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]