Skip to content

Commit 9a7edb2

Browse files
committed
Add pic/pie support to i386
Some targets (netbsd) require that code is compiled with -fPIE. i386-gen.c: Lot of changes to load/store code i386-link.c: Set PCRELATIVE_DLLPLT depending on configuration tccelf.c: Change some relocations and add get_pc_thunk.o Makefile lib/Makefile lib/get_pc_thunk.S: Add new file get_pc_thunk.o
1 parent 5ce2c4b commit 9a7edb2

File tree

6 files changed

+332
-60
lines changed

6 files changed

+332
-60
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ IR = $(IM) mkdir -p $2 && cp -r $1/. $2
372372
IM = @echo "-> $2 : $1" ;
373373
BINCHECK = $(if $(wildcard $(PROGS) *-tcc$(EXESUF)),,@echo "Makefile: nothing found to install" && exit 1)
374374

375-
EXTRA_O = runmain.o run_nostdlib.o bt-exe.o bt-dll.o bt-log.o bcheck.o
375+
EXTRA_O = runmain.o run_nostdlib.o bt-exe.o bt-dll.o bt-log.o bcheck.o get_pc_thunk.o
376376

377377
# install progs & libs
378378
install-unx:

0 commit comments

Comments
 (0)