bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/22914] Gold doesn't support .note.gnu.property section (NT_GNU


From: hjl.tools at gmail dot com
Subject: [Bug gold/22914] Gold doesn't support .note.gnu.property section (NT_GNU_PROPERTY_TYPE_0)
Date: Thu, 16 Aug 2018 13:44:19 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
Gold didn't properly align the NT_GNU_PROPERTY_TYPE_0 note:

address@hidden simple-linux]$ make LD=ld.gold
gcc -g -fcf-protection   -c -o test.o test.S
gcc -g -fcf-protection   -c -o start.o start.S
gcc -g -fcf-protection   -c -o syscall.o syscall.S
ld.gold  -o test test.o start.o syscall.o
./test hello world
address@hidden simple-linux]$ readelf -l test

Elf file type is EXEC (Executable file)
Entry point 0x400151
There are 3 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
                 0x00000000000001f0 0x00000000000001f0  R E    0x1000
  LOAD           0x0000000000001000 0x0000000000401000 0x0000000000401000
                 0x0000000000000000 0x0000000000000000  RW     0x1000
  NOTE           0x00000000000000e8 0x00000000004000e8 0x00000000004000e8
                 0x0000000000000030 0x0000000000000030  R      0x4

 Section to Segment mapping:
  Segment Sections...
   00     .note.gnu.property .text .eh_frame 
   01     .data .bss 
   02     .note.gnu.property 
address@hidden simple-linux]$ 

The NT_GNU_PROPERTY_TYPE_0 note follows gABI and should have 8 byte
alignment for 64-bit ELF.

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