Skip to content

Compilation: enable PIE and PIC #68

@kewde

Description

@kewde

For security reasons it's better to compile our code with position indepent code/execution, rendering the stack unexecutable protecting against buffer overflows.

LevelDB needs to be compiled with -fPIC
Shadow needs to be compiled with -e PIE=1

The makefile.unix in src specifies a way (scanelf) to check if a binary is compiled with non-executable stack.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions