bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/32761] binary created by ld will segfault in _dl_relocate_static


From: hjl.tools at gmail dot com
Subject: [Bug ld/32761] binary created by ld will segfault in _dl_relocate_static_pie when static pie is enabled
Date: Wed, 05 Mar 2025 02:09:53 +0000

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com,
                   |                            |nickc at redhat dot com

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
There are 13 program headers, starting at offset 64

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x1c8781
0x1c8781 R E 0x1000
                 ^^^^^^^^
  LOAD           0x1c9000 0x00000000001c9000 0x00000000001c9000 0x0fa130
0x0fa130 R   0x1000
  LOAD           0x2c32f0 0x00000000002c42f0 0x00000000002c42f0 0x0e8944
0x0e8944 RW  0x1000
  LOAD           0x000000 0x00000000003b0000 0x00000000003b0000 0x000000
0xb5dce8 RW  0x10000
                 ^^^^^^^ The same offset is mapped twice.
  DYNAMIC        0x3a3768 0x00000000003a4768 0x00000000003a4768 0x0001d0
0x0001d0 RW  0x8
  NOTE           0x000318 0x0000000000000318 0x0000000000000318 0x000024
0x000024 R   0x4
  NOTE           0x2c30d0 0x00000000002c30d0 0x00000000002c30d0 0x000040
0x000040 R   0x8
  NOTE           0x2c3110 0x00000000002c3110 0x00000000002c3110 0x000020
0x000020 R   0x4
  TLS            0x2c32f0 0x00000000002c42f0 0x00000000002c42f0 0x000070
0x0001a0 R   0x8
  GNU_PROPERTY   0x2c30d0 0x00000000002c30d0 0x00000000002c30d0 0x000040
0x000040 R   0x8
  GNU_EH_FRAME   0x278900 0x0000000000278900 0x0000000000278900 0x00afdc
0x00afdc R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x10
  GNU_RELRO      0x2c32f0 0x00000000002c42f0 0x00000000002c42f0 0x0e0d10
0x0e0d10 R   0x1

 Section to Segment mapping:
  Segment Sections...
   00     .note.gnu.build-id .init .plt .plt.got .text .fini 
   01     .gnu.hash .dynsym .dynstr .rela.dyn .rela.plt .rodata .stapsdt.base
rodata.cst32 .eh_frame_hdr .eh_frame .gcc_except_table .note.gnu.property
.note.ABI-tag 
   02     .tdata .init_array .fini_array .data.rel.ro .dynamic .got .got.plt
.data 
   03     .bss 
   04     .dynamic 
   05     .note.gnu.build-id 
   06     .note.gnu.property 
   07     .note.ABI-tag 
   08     .tdata .tbss 
   09     .note.gnu.property 
   10     .eh_frame_hdr 
   11     
   12     .tdata .init_array .fini_array .data.rel.ro .dynamic .got

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