[Bug 298541] Linux binary 'copilot' prints: ELF binary type "0" not known

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Sep 2026 13:55:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298541

--- Comment #5 from Ed Maste <emaste@freebsd.org> ---
Can you place your copilot binary somehwere? The one I installed from the
package just now has OS/ABI 3 (GNU), not 0.

 $ readelf -h /usr/local/bin/copilot
readelf: warning: '/usr/local/bin/copilot': SHT_DYNAMIC section with index 26
is not contained within the PT_DYNAMIC segment
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)
vvvvvvvvvvvv
  OS/ABI:                            UNIX - GNU
^^^^^^^^^^^^
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x7ED080
  Start of program headers:          46337892 (bytes into file)
  Start of section headers:          160166176 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         15
  Size of section headers:           64 (bytes)
  Number of section headers:         43
  Section header string table index: 30

-- 
You are receiving this mail because:
You are the assignee for the bug.