[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21132] [hppa-linux] pie support doesn't work
From: |
amodra at gmail dot com |
Subject: |
[Bug ld/21132] [hppa-linux] pie support doesn't work |
Date: |
Wed, 15 Feb 2017 07:22:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21132
--- Comment #7 from Alan Modra <amodra at gmail dot com> ---
It looks like this is a problem with ifunc. If I link with -z nocombreloc to
keep dynamic relocs in separate sections, then I see
Relocation section '.rela.got' at offset 0x314 contains 20 entries:
Offset Info Type Sym. Value Symbol's Name + Addend
00001150 00000481 R_PARISC_IPLT 00000000 __gmon_start__ + 0
00001158 00000581 R_PARISC_IPLT 00000000
address@hidden + 0
00001160 00000781 R_PARISC_IPLT 00000000 _ITM_registerTMCloneTable
+ 0
00001198 00000001 R_PARISC_DIR32 1024
0000119c 00000001 R_PARISC_DIR32 1028
Huh, how did those ifunc relocs get to be there? They wrote over top of the
proper got reloc entries for .Lpmain, .Lp__libc_csu_init, and
.Lp__libc_csu_fini!
So .rela.plt isn't being allocated a large enough reloc count for ifunc. Its
buffer is thus too small and writes go over the end and into the buffer for
.rela.got.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/21132] New: [hppa-linux] pie support doesn't work, danglin at gcc dot gnu.org, 2017/02/12
- [Bug ld/21132] [hppa-linux] pie support doesn't work, danglin at gcc dot gnu.org, 2017/02/13
- [Bug ld/21132] [hppa-linux] pie support doesn't work, danglin at gcc dot gnu.org, 2017/02/13
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/14
- [Bug ld/21132] [hppa-linux] pie support doesn't work, dave.anglin at bell dot net, 2017/02/14
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/14
- [Bug ld/21132] [hppa-linux] pie support doesn't work, danglin at gcc dot gnu.org, 2017/02/14
- [Bug ld/21132] [hppa-linux] pie support doesn't work,
amodra at gmail dot com <=
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/15
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/15
- [Bug ld/21132] [hppa-linux] pie support doesn't work, danglin at gcc dot gnu.org, 2017/02/15
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/15
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/16
- [Bug ld/21132] [hppa-linux] pie support doesn't work, dave.anglin at bell dot net, 2017/02/16
- [Bug ld/21132] [hppa-linux] pie support doesn't work, cvs-commit at gcc dot gnu.org, 2017/02/16
- [Bug ld/21132] [hppa-linux] pie support doesn't work, cvs-commit at gcc dot gnu.org, 2017/02/16
- [Bug ld/21132] [hppa-linux] pie support doesn't work, amodra at gmail dot com, 2017/02/16