bsd update

Fix crtbegin/crtend
Use dlsym on all bsd targets
Check .eh_frame on all bsd targets
Disable test3 on FreeBSD and NetBSD and use test1 instead because dlsym not working (WIP)
Disable dlltest and 113_btdll on NetBSD because text relocations are not allowed
Disable 115_bound_setjmp on NetBSD because longjmp is renamed into __longjmp14
This commit is contained in:
herman ten brugge
2020-12-19 20:55:52 +01:00
parent a87dee588b
commit 7f898abb82
4 changed files with 31 additions and 13 deletions

View File

@@ -64,6 +64,17 @@ endif
ifeq ($(TARGETOS),OpenBSD)
dlltest: CFLAGS+=-fno-stack-protector
endif
ifeq ($(TARGETOS),FreeBSD)
# test3 has dlsym problems
TESTS := $(filter-out test3,$(TESTS))
TESTS += test1
endif
ifeq ($(TARGETOS),NetBSD)
# test3 has dlsym problems
# dlltest does not allow text relocations
TESTS := $(filter-out test3 dlltest,$(TESTS))
TESTS += test1
endif
RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS)
DISAS = objdump -d