bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27091] New: executable is incorrectly marked as ELFOSABI_GNU


From: hjl.tools at gmail dot com
Subject: [Bug ld/27091] New: executable is incorrectly marked as ELFOSABI_GNU
Date: Thu, 17 Dec 2020 14:09:48 +0000

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

            Bug ID: 27091
           Summary: executable is incorrectly marked as ELFOSABI_GNU
           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: ---

[hjl@gnu-cfl-2 retain-2]$ cat x.s
        .type _start,"function"
        .section .text,"axR",%progbits
        .global _start
_start:
        .nop
[hjl@gnu-cfl-2 retain-2]$ make
./as   -o x.o x.s
./ld  -e _start -o x x.o
readelf -h x
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - GNU
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x401000
  Start of program headers:          64 (bytes into file)
  Start of section headers:          4352 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         4
  Size of section headers:           64 (bytes)
  Number of section headers:         6
  Section header string table index: 5
[hjl@gnu-cfl-2 retain-2]$ 

Since SHF_GNU_RETAIN has no impact on shared object and executable,
they shouldn't be marked with ELFOSABI_GNU.

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