BSD: arm support
commit5aba20f270f24a01900f4389c0500f43f6387e64
authorherman ten brugge <hermantenbrugge@home.nl>
Sat, 16 Jan 2021 06:01:59 +0000 (16 07:01 +0100)
committerherman ten brugge <hermantenbrugge@home.nl>
Sat, 16 Jan 2021 06:01:59 +0000 (16 07:01 +0100)
tree754e0bd9b3ec55c65bf351e0bd9a32b2b15f79de
parent757eccd1d22fc04419151a49c53dd7d571454395
BSD: arm support

Support OpenBSD/FreeBSD/NetBSD on asm.

move PAGESIZE to tcc.h and use _SC_PAGESIZE (netbsd/arm has 8192 pagesize)

arm:
- fix cmp instruction for qemu (raspberry pi works without patch?)
- increase start address/size
- use large plt size
- add return R_ARM_PREL31
- add R_ARM_TARGET1 to prepare_dynamic_rel
- add gcc_s to FreeBSD (unwind code)
- do not use __clear_cache on bsd (sometimes bad system call)
- do stack unwinding on bsd
- test/tcctest.c: use %lld %llu on bsd
arm-gen.c
arm-link.c
tcc.h
tccelf.c
tccrun.c
tests/tcctest.c