[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21252] -shared/-pie create RWE LOAD segment
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/21252] -shared/-pie create RWE LOAD segment |
Date: |
Mon, 23 Jan 2023 16:50:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21252
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.40
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Works for binutils 2.40:
There are 13 section headers, starting at offset 0x3118:
Section Headers:
[Nr] Name Type Address Off Size ES Flg
Lk Inf Al
[ 0] NULL 0000000000000000 000000 000000 00
0 0 0
[ 1] .hash HASH 0000000000000200 000200 000028 04 A
3 0 8
[ 2] .gnu.hash GNU_HASH 0000000000000228 000228 000034 00 A
3 0 8
[ 3] .dynsym DYNSYM 0000000000000260 000260 000078 18 A
4 1 8
[ 4] .dynstr STRTAB 00000000000002d8 0002d8 00000e 00 A
0 0 1
[ 5] .text PROGBITS 0000000000001000 001000 000008 00 AX
0 0 1
[ 6] .note.gnu.property NOTE 0000000000002000 002000 000030 00 A
0 0 8
[ 7] .eh_frame PROGBITS 0000000000002030 002030 000000 00 A
0 0 8
[ 8] .dynamic DYNAMIC 0000000000003f40 002f40 0000c0 10 WA
4 0 8
[ 9] .data PROGBITS 0000000000004000 003000 000001 00 WA
0 0 1
[10] .symtab SYMTAB 0000000000000000 003008 000090 18
11 2 8
[11] .strtab STRTAB 0000000000000000 003098 000017 00
0 0 1
[12] .shstrtab STRTAB 0000000000000000 0030af 000067 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 (Shared object file)
Entry point 0x1000
There are 8 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz
Flg Align
LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x0002e6
0x0002e6 R 0x1000
LOAD 0x001000 0x0000000000001000 0x0000000000001000 0x000008
0x000008 R E 0x1000
LOAD 0x002000 0x0000000000002000 0x0000000000002000 0x000030
0x000030 R 0x1000
LOAD 0x002f40 0x0000000000003f40 0x0000000000003f40 0x0000c1
0x0000c1 RW 0x1000
DYNAMIC 0x002f40 0x0000000000003f40 0x0000000000003f40 0x0000c0
0x0000c0 RW 0x8
NOTE 0x002000 0x0000000000002000 0x0000000000002000 0x000030
0x000030 R 0x8
GNU_PROPERTY 0x002000 0x0000000000002000 0x0000000000002000 0x000030
0x000030 R 0x8
GNU_RELRO 0x002f40 0x0000000000003f40 0x0000000000003f40 0x0000c0
0x0000c0 R 0x1
Section to Segment mapping:
Segment Sections...
00 .hash .gnu.hash .dynsym .dynstr
01 .text
02 .note.gnu.property
03 .dynamic .data
04 .dynamic
05 .note.gnu.property
06 .note.gnu.property
07 .dynamic
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/21252] -shared/-pie create RWE LOAD segment,
hjl.tools at gmail dot com <=