Skip to content

link option for PIE executable #8791

Closed
Closed
@chunseoklee

Description

@chunseoklee

I have built the latest coreclr (commit 637bfef) and found that it does not produce PIE executables for corerun, crossgen, ildasm, ilasdm.

twoflower@js2-desktop ~/d/c/b/P/Linux.x64.Release> hardening-check crossgen
crossgen:
 Position Independent Executable: no, normal executable!
 Stack protected: yes
 Fortify Source functions: no, only unprotected functions found!
 Read-only relocations: yes
 Immediate binding: no, not found!

But, compilation option -fPIE is introduced on commit 891b2aa.
Am I missing something(flag) or we need a patch to enable PIE executable ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions