[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils-bugs
Subject:    [Bug gold/28006] New: Linking 32-bit x86 binaries using gold drops the .note.gnu.property section
From:       "nickc at redhat dot com" <sourceware-bugzilla () sourceware ! org>
Date:       2021-06-22 15:15:37
Message-ID: bug-28006-70 () http ! sourceware ! org/bugzilla/
[Download RAW message or body]

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

            Bug ID: 28006
           Summary: Linking 32-bit x86 binaries using gold drops the
                    .note.gnu.property section
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: nickc at redhat dot com
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 13511
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13511&action=edit
Proposed patch

When linking 32-bit x86 binaries using the gold linker the .note.gnu.property
section is not created.  The BFD linker on the other hand does create the
section.

For example:

  % gcc -fcf-protection -m32 hello.c
  % readelf --notes a.out | grep SHSTK
     Properties: x86 feature: IBT, SHSTK

  % gcc -fcf-protection -m32 hello.c -fuse-ld=gold
  % readelf --notes a.out | grep SHSTK
  %

A suggested patch is attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic