Bug 66721
Summary: | Load address in PIE is ignored when address randomization is disabled | ||
---|---|---|---|
Product: | Platform Specific/Hardware | Reporter: | H.J. Lu (hjl.tools) |
Component: | x86-64 | Assignee: | platform_x86_64 (platform_x86_64) |
Status: | NEW --- | ||
Severity: | normal | CC: | andrey_utkin, konstantin.s.serebryany, unmobile+bzko |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.12 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | A patch to honor non-zero load addres in PIE |
Description
H.J. Lu
2013-12-06 18:15:57 UTC
Created attachment 117741 [details]
A patch to honor non-zero load addres in PIE
Any hope with this? I checked a workaround in ld: commit 58e7ebacdd97c858834c07c7dce098aeacd500fb Author: H.J. Lu <hjl.tools@gmail.com> Date: Thu Dec 12 07:41:27 2013 -0800 Set ET_EXEC for -pie -Ttext-segment= bfd/ * elf.c (assign_file_positions_except_relocs): Set e_type in ELF header to ET_EXEC for -pie -Ttext-segment=. 2013-12-10 H.J. Lu <hongjiu.lu@intel.com> * ld-pie/vaddr-0.d: New file. * ld-pie/vaddr-1.d: Likewise. * ld-pie/vaddr.s: Likewise. |