[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE |
Date: |
Fri, 06 Oct 2017 12:41:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22269
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
FYI, x86-64 has
address@hidden glibc]$ gcc -c x.s
address@hidden glibc]$ ld -pie --no-dynamic-linker address@hidden glibc]$
readelf -rl a.out
Elf file type is DYN (Shared object file)
Entry point 0x169
There are 4 program headers, starting at offset 64
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000170 0x0000000000000170 R E 0x200000
LOAD 0x0000000000000f18 0x0000000000200f18 0x0000000000200f18
0x00000000000000e8 0x00000000000000e8 RW 0x200000
DYNAMIC 0x0000000000000f20 0x0000000000200f20 0x0000000000200f20
0x00000000000000e0 0x00000000000000e0 RW 0x8
GNU_RELRO 0x0000000000000f18 0x0000000000200f18 0x0000000000200f18
0x00000000000000e8 0x00000000000000e8 R 0x1
Section to Segment mapping:
Segment Sections...
00 .hash .gnu.hash .dynsym .dynstr .text
01 .data.rel.ro .dynamic
02 .dynamic
03 .data.rel.ro .dynamic
There are no relocations in this file.
address@hidden glibc]$ readelf -x .data.rel.ro a.out
Hex dump of section '.data.rel.ro':
0x00200f18 00000000 00000000 ........
address@hidden glibc]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/22269] New: Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/06
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/06
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE,
hjl.tools at gmail dot com <=
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/06
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, amodra at gmail dot com, 2017/10/09
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/09
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, amodra at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, amodra at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, hjl.tools at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, amodra at gmail dot com, 2017/10/10
- [Bug ld/22269] Undefined weak symbols isn't resolved to 0 in static PIE, cvs-commit at gcc dot gnu.org, 2017/10/11