[Bug 295629] Linuxlator fails to run the linux x86_64 binary: Program headers not in the first page

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 27 May 2026 21:10:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295629

--- Comment #2 from Yuri Victorovich <yuri@freebsd.org> ---
$ readelf -l /home/yuri/.local/bin/copilot
readelf: warning: '/home/yuri/.local/bin/copilot': SHT_DYNAMIC section with
index 26 is not contained within the PT_DYNAMIC segment

Elf file type is EXEC (Executable file)
Entry point 0x7d5fb0
There are 15 program headers, starting at offset 45904260

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  PHDR           0x2bc7184 0x0000000002fc7184 0x0000000002fc7184 0x038e7c
0x038e7c R   0x8
  INTERP         0x000350 0x0000000000400350 0x0000000000400350 0x00001c
0x00001c R   0x1
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  LOAD           0x000000 0x0000000000400000 0x0000000000400000 0x3315b0
0x3315b0 R   0x1000
  LOAD           0x332000 0x0000000000732000 0x0000000000732000 0x0021d0
0x0021d0 R E 0x1000
  LOAD           0x336000 0x0000000000736000 0x0000000000736000 0x28ca000
0x28ca000 R E 0x2000
  LOAD           0x2c00000 0x0000000003000000 0x0000000003000000 0x0006a1
0x0006a1 R E 0x200000
  LOAD           0x2c01000 0x0000000003001000 0x0000000003001000 0x3869492
0x3869492 R   0x1000
  LOAD           0x646a5f0 0x000000000686b5f0 0x000000000686b5f0 0x02e1d0
0x066a38 RW  0x1000
  LOAD           0x75c0000 0x000000000f5c0000 0x000000000f5c0000 0x28e0000
0x28e0000 R   0x1000
  DYNAMIC        0x646cbb0 0x000000000686dbb0 0x000000000686dbb0 0x000200
0x000200 RW  0x8
  NOTE           0x75c0000 0x000000000f5c0000 0x000000000f5c0000 0x28d5108
0x28d5108 R   0x4
  TLS            0x646a5f0 0x000000000686b5f0 0x000000000686b5f0 0x000004
0x0001a8 R   0x8
  GNU_EH_FRAME   0x60001e4 0x00000000064001e4 0x00000000064001e4 0x0c6f0c
0x0c6f0c R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x10
  GNU_RELRO      0x646a5f0 0x000000000686b5f0 0x000000000686b5f0 0x003a10
0x003a10 R   0x1

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .interp .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r
.rela.dyn .rela.plt 
   03     .init .plt 
   04     .text 
   05     lpstub malloc_hook .fini 
   06     .rodata .eh_frame_hdr .eh_frame .gcc_except_table 
   07     .tdata .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 
   08     .note.gnu.build-id .note.ABI-tag 
   09     
   10     .note.gnu.build-id .note.ABI-tag 
   11     .tdata .tbss 
   12     .eh_frame_hdr 
   13     
   14     .tdata .init_array .fini_array .data.rel.ro .dynamic .got 
   None   .comment .gnu.build.attributes .debug_aranges .debug_info
.debug_abbrev .debug_line .debug_str .debug_loc .debug_ranges .symtab .strtab
.shstrtab

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