[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/26039] New: gold doesn't add PIE flag
From: |
vries at gcc dot gnu.org |
Subject: |
[Bug gold/26039] New: gold doesn't add PIE flag |
Date: |
Mon, 25 May 2020 10:19:36 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26039
Bug ID: 26039
Summary: gold doesn't add PIE flag
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: vries at gcc dot gnu.org
CC: ian at airs dot com
Target Milestone: ---
[ Spinoff of PR26031. ]
A PIE flag is added by ld to the dynamic flags when generating a
position-independent executable:
...
$ gcc hello.c -fPIE -pie
$ readelf -d a.out | grep FLAGS
0x000000006ffffffb (FLAGS_1) Flags: PIE
$
...
But not by gold:
...
$ gcc hello.c -fPIE -pie -fuse-ld=gold
$ readelf -d a.out | grep FLAGS
$
...
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/26039] New: gold doesn't add PIE flag,
vries at gcc dot gnu.org <=