dynamic executables (PIE)
commitebaa5c81f43fc7963ee50fbb01729290e2349aa5
authorgrischka <grischka>
Sat, 28 May 2022 19:00:40 +0000 (28 21:00 +0200)
committergrischka <grischka>
Sun, 24 Jul 2022 07:44:50 +0000 (24 09:44 +0200)
tree153af93c13d36d4188648f59a772907b97cc7793
parente460f7dbb2165112bc618816ec15be312b257de2
dynamic executables (PIE)

Allows to create dynamic executables, using the code path
for TCC_OUTPUT_DLL but add an .interp header (plus a FLAGS_1
entry in the dynamic section to make 'readelf' say "PIE")

Introduces TCC_OUTPUT_DYN as alias for TCC_OUTPUT_DLL.
There is no runtime option,  only one to configure:

    ./configure --config-pie

100 insertions(+), 76 deletions(-)
13 files changed:
Makefile
arm-gen.c
arm-link.c
arm64-link.c
elf.h
i386-link.c
libtcc.c
libtcc.h
riscv64-link.c
tcc.h
tccdbg.c
tccelf.c
x86_64-link.c