Skip to content
relros.c applies RELRO to static binaries, and static_to_dyn.c applies ASLR to static binaries.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dietlibc_fpic
include
Makefile
README.md
relros.c
static_to_dyn.c
test.c
test2.c
test3.c

README.md

-= R&D for forcing relro and aslr on statically linked executables =-

BUILD NOTES: These tools need to be updated to work on versions of glibc that don't use generic_start_main. This code was all designed on ubuntu 16 with libc 2.27 and GNU CC version 7.3.0.

Run 'make'

To build relros.c, and static_to_dyn.c, both of which will automatically be applied to test.c and test2.c.

After typing make, test will be a static executable with RELRO and test2 will be a static executable with ASLR applied.

  • elfmaster
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.