bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28743] BFD ld: ELF LOAD segments creating holes in the process i


From: fweimer at redhat dot com
Subject: [Bug ld/28743] BFD ld: ELF LOAD segments creating holes in the process image on GNU/Linux
Date: Mon, 03 Jan 2022 15:49:05 +0000

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
There are 31 section headers, starting at offset 0xad2b8:

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .interp           PROGBITS        0000000000000318 000318 00001c 00   A 
0   0  1
  [ 2] .note.gnu.property NOTE            0000000000000338 000338 000050 00   A
 0   0  8
  [ 3] .note.gnu.build-id NOTE            0000000000000388 000388 000024 00   A
 0   0  4
  [ 4] .note.ABI-tag     NOTE            00000000000003ac 0003ac 000020 00   A 
0   0  4
  [ 5] .gnu.hash         GNU_HASH        00000000000003d0 0003d0 0000b4 00   A 
6   0  8
  [ 6] .dynsym           DYNSYM          0000000000000488 000488 001458 18   A 
7   1  8
  [ 7] .dynstr           STRTAB          00000000000018e0 0018e0 000af7 00   A 
0   0  1
  [ 8] .gnu.version      VERSYM          00000000000023d8 0023d8 0001b2 02   A 
6   0  2
  [ 9] .gnu.version_r    VERNEED         0000000000002590 002590 0000c0 00   A 
7   2  8
  [10] .rela.dyn         RELA            0000000000002650 002650 00f150 18   A 
6   0  8
  [11] .rela.plt         RELA            00000000000117a0 0117a0 001200 18  AI 
6  24  8
  [12] .init             PROGBITS        0000000000013000 013000 00001b 00  AX 
0   0  4
  [13] .plt              PROGBITS        0000000000013020 013020 000c10 10  AX 
0   0 16
  [14] .plt.sec          PROGBITS        0000000000013c30 013c30 000c00 10  AX 
0   0 16
  [15] .text             PROGBITS        0000000000014830 014830 0505e2 00  AX 
0   0 16
  [16] .fini             PROGBITS        0000000000064e14 064e14 00000d 00  AX 
0   0  4
  [17] .rodata           PROGBITS        0000000000065000 065000 032dc0 00   A 
0   0 32
  [18] .eh_frame_hdr     PROGBITS        0000000000097dc0 097dc0 000dc4 00   A 
0   0  4
  [19] .eh_frame         PROGBITS        0000000000098b88 098b88 009ca8 00   A 
0   0  8
  [20] .init_array       INIT_ARRAY      00000000000a4130 0a3130 000008 08  WA 
0   0  8
  [21] .fini_array       FINI_ARRAY      00000000000a4138 0a3138 000008 08  WA 
0   0  8
  [22] .data.rel.ro      PROGBITS        00000000000a4140 0a3140 007658 00  WA 
0   0 32
  [23] .dynamic          DYNAMIC         00000000000ab798 0aa798 000220 10  WA 
7   0  8
  [24] .got              PROGBITS        00000000000ab9b8 0aa9b8 000640 08  WA 
0   0  8
  [25] .data             PROGBITS        00000000000ac000 0ab000 0004e0 00  WA 
0   0 32
  [26] .bss              NOBITS          00000000000ac4e0 0ab4e0 000858 00  WA 
0   0 32
  [27] .gnu.build.attributes NOTE            00000000000aed38 0ab4e0 000438 00 
    0   0  4
  [28] .gnu_debuglink    PROGBITS        0000000000000000 0ab918 000024 00     
0   0  4
  [29] .gnu_debugdata    PROGBITS        0000000000000000 0ab93c 001838 00     
0   0  1
  [30] .shstrtab         STRTAB          0000000000000000 0ad174 00013e 00     
0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  D (mbind), l (large), p (processor specific)

Elf file type is DYN (Position-Independent Executable file)
Entry point 0x15f50
There are 13 program headers, starting at offset 64

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz
  Flg Align
  PHDR           0x000040 0x0000000000000040 0x0000000000000040 0x0002d8
0x0002d8 R   0x8
  INTERP         0x000318 0x0000000000000318 0x0000000000000318 0x00001c
0x00001c R   0x1
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
  LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x0129a0
0x0129a0 R   0x1000
  LOAD           0x013000 0x0000000000013000 0x0000000000013000 0x051e21
0x051e21 R E 0x1000
  LOAD           0x065000 0x0000000000065000 0x0000000000065000 0x03d830
0x03d830 R   0x1000
  LOAD           0x0a3130 0x00000000000a4130 0x00000000000a4130 0x0083b0
0x008c08 RW  0x1000
  DYNAMIC        0x0aa798 0x00000000000ab798 0x00000000000ab798 0x000220
0x000220 RW  0x8
  NOTE           0x000338 0x0000000000000338 0x0000000000000338 0x000050
0x000050 R   0x8
  NOTE           0x000388 0x0000000000000388 0x0000000000000388 0x000044
0x000044 R   0x4
  GNU_PROPERTY   0x000338 0x0000000000000338 0x0000000000000338 0x000050
0x000050 R   0x8
  GNU_EH_FRAME   0x097dc0 0x0000000000097dc0 0x0000000000097dc0 0x000dc4
0x000dc4 R   0x4
  GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000
0x000000 RW  0x10
  GNU_RELRO      0x0a3130 0x00000000000a4130 0x00000000000a4130 0x007ed0
0x007ed0 R   0x1

 Section to Segment mapping:
  Segment Sections...
   00     
   01     .interp 
   02     .interp .note.gnu.property .note.gnu.build-id .note.ABI-tag .gnu.hash
.dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt 
   03     .init .plt .plt.sec .text .fini 
   04     .rodata .eh_frame_hdr .eh_frame 
   05     .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 
   06     .dynamic 
   07     .note.gnu.property 
   08     .note.gnu.build-id .note.ABI-tag 
   09     .note.gnu.property 
   10     .eh_frame_hdr 
   11     
   12     .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]