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

            Bug ID: 24721
           Summary: -Map generates corrupt .note.gnu.property section
           Product: binutils
           Version: 2.33 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-cfl-1 ld]$ cat x.c
void
foo (void)
{
}
[hjl@gnu-cfl-1 ld]$ cat y.c
void
bar (void)
{
}
[hjl@gnu-cfl-1 ld]$ gcc -fPIC -c -fcf-protection x.c -Wa,-mx86-used-note=no
[hjl@gnu-cfl-1 ld]$ gcc -fPIC -c  y.c -Wa,-mx86-used-note=no
[hjl@gnu-cfl-1 ld]$ ld -shared -o foo.so -Map libfoo.map y.o x.o 
[hjl@gnu-cfl-1 ld]$ readelf -n foo.so

Displaying notes found in: .note.gnu.property
  Owner                 Data size       Description
  GNU                  0x00000000       NT_GNU_PROPERTY_TYPE_0
      Properties: <corrupt GNU_PROPERTY_TYPE, size = 0>
[hjl@gnu-cfl-1 ld]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to