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.