[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21000] hppa-linux does not support -z relro
From: |
dave.anglin at bell dot net |
Subject: |
[Bug ld/21000] hppa-linux does not support -z relro |
Date: |
Mon, 13 Feb 2017 13:19:42 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21000
--- Comment #16 from dave.anglin at bell dot net ---
On 2017-02-12, at 8:34 PM, amodra at gmail dot com wrote:
> I obviously didn't understand the alias problem.. If I am grasping it
> correctly now, is the complaint about INEQUIVALENT ALIASES really that in the
> following load map from a trivial -z relro main.c we have file offsets in the
> same page?
>
> LOAD 0x000000 0x00010000 0x00010000 0x00898 0x00898 R E 0x1000
> LOAD 0x000f20 0x00011f20 0x00011f20 0x0014c 0x0015c RWE 0x1000
I think the issue is easiest to understand by looking at the maps file for the
process.
For the trivial -z relro main we have
address@hidden:/proc/19876$ cat maps
00010000-00011000 r-xp 00000000 08:11 11799480
/home/dave/ffmpeg/main
00011000-00012000 r--p 00000000 08:11 11799480
/home/dave/ffmpeg/main
00012000-00013000 rwxp 00001000 08:11 11799480
/home/dave/ffmpeg/main
f9ffb000-fa167000 r-xp 00000000 08:25 33770753
/lib/hppa-linux-gnu/libc-2.24.so
fa167000-fa16e000 rwxp 0016c000 08:25 33770753
/lib/hppa-linux-gnu/libc-2.24.so
fa16e000-fa170000 rwxp 00000000 00:00 0
fa3f8000-fa41b000 r-xp 00000000 08:25 33710119
/lib/hppa-linux-gnu/ld-2.24.so
fa41b000-fa41f000 rwxp 00023000 08:25 33710119
/lib/hppa-linux-gnu/ld-2.24.so
fa4fc000-fa501000 rw-p 00000000 00:00 0
fa501000-fa523000 rwxp 00000000 00:00 0
[stack]
Without -z relro, we have
address@hidden:/proc/25080$ cat maps
00010000-00011000 r-xp 00000000 08:11 11799480
/home/dave/ffmpeg/main
00011000-00012000 rwxp 00001000 08:11 11799480
/home/dave/ffmpeg/main
f9ffb000-fa167000 r-xp 00000000 08:25 33770753
/lib/hppa-linux-gnu/libc-2.24.so
fa167000-fa16e000 rwxp 0016c000 08:25 33770753
/lib/hppa-linux-gnu/libc-2.24.so
fa16e000-fa170000 rwxp 00000000 00:00 0
fa3f8000-fa41b000 r-xp 00000000 08:25 33710119
/lib/hppa-linux-gnu/ld-2.24.so
fa41b000-fa41f000 rwxp 00023000 08:25 33710119
/lib/hppa-linux-gnu/ld-2.24.so
fa4fc000-fa501000 rw-p 00000000 00:00 0
fa501000-fa523000 rwxp 00000000 00:00 0
[stack]
--
John David Anglin address@hidden
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21000] hppa-linux does not support -z relro, cvs-commit at gcc dot gnu.org, 2017/02/03
- [Bug ld/21000] hppa-linux does not support -z relro, amodra at gmail dot com, 2017/02/03
- [Bug ld/21000] hppa-linux does not support -z relro, danglin at gcc dot gnu.org, 2017/02/12
- [Bug ld/21000] hppa-linux does not support -z relro, amodra at gmail dot com, 2017/02/12
- [Bug ld/21000] hppa-linux does not support -z relro, dave.anglin at bell dot net, 2017/02/12
- [Bug ld/21000] hppa-linux does not support -z relro,
dave.anglin at bell dot net <=
- [Bug ld/21000] hppa-linux does not support -z relro, amodra at gmail dot com, 2017/02/14
- [Bug ld/21000] hppa-linux does not support -z relro, amodra at gmail dot com, 2017/02/14
- [Bug ld/21000] hppa-linux does not support -z relro, dave.anglin at bell dot net, 2017/02/14
- [Bug ld/21000] hppa-linux does not support -z relro, danglin at gcc dot gnu.org, 2017/02/14
- [Bug ld/21000] hppa-linux does not support -z relro, cvs-commit at gcc dot gnu.org, 2017/02/16
- [Bug ld/21000] hppa-linux does not support -z relro, cvs-commit at gcc dot gnu.org, 2017/02/16
- [Bug ld/21000] hppa-linux does not support -z relro, amodra at gmail dot com, 2017/02/16