bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26711] New: -z ibt and -z shstk are mishandled


From: hjl.tools at gmail dot com
Subject: [Bug ld/26711] New: -z ibt and -z shstk are mishandled
Date: Tue, 06 Oct 2020 21:33:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26711

            Bug ID: 26711
           Summary: -z ibt and -z shstk are mishandled
           Product: binutils
           Version: 2.36 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

Created attachment 12891
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12891&action=edit
A testcase

[hjl@gnu-cfl-2 cet-1]$ make LD=./ld.master
as --64 -defsym __64_bit__=1 -o foo.o foo.s
as --64 -defsym __64_bit__=1 -o bar.o bar.s
as --64 -defsym __64_bit__=1 -o start.o start.s
./ld.master -o x foo.o bar.o start.o -z shstk
./ld.master -o y foo.o start.o -z shstk
./readelf -n x

Displaying notes found in: .note.gnu.property
  Owner                Data size        Description
  GNU                  0x00000040       NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature: SHSTK
        <procesor-specific type 0xc0001002 data: 02 00 00 00 >
        x86 feature used: x86
        <procesor-specific type 0xc0010002 data: 00 00 00 00 >
./readelf -n y

Displaying notes found in: .note.gnu.property
  Owner                Data size        Description
  GNU                  0x00000040       NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature: SHSTK
        <procesor-specific type 0xc0001002 data: 02 00 00 00 >
        x86 feature used: x86
        <procesor-specific type 0xc0010002 data: 00 00 00 00 >
[hjl@gnu-cfl-2 cet-1]$ 

There should be no

<procesor-specific type 0xc0001002 data: 02 00 00 00 >

-- 
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]