tccelf: some linker cleanup
commitca92bfc3c64128872793c167de3a58a78b9a1299
authorgrischka <grischka>
Thu, 15 Dec 2016 16:01:22 +0000 (15 17:01 +0100)
committergrischka <grischka>
Thu, 15 Dec 2016 16:01:22 +0000 (15 17:01 +0100)
treed8fe09de7934dc0c23aef2417ce2bb9d589512f3
parentfe6453f8f08b5c21a339b3169a837772a9864d62
tccelf: some linker cleanup

- generate and use SYM@PLT for plt addresses
- get rid of patch_dynsym_undef hack (no idea what it did on FreeBSD)
- use sym_attrs instead of symtab_to_dynsym
- special case for function pointers into .so on i386
- libtcc_test: test tcc_add_symbol with data object
- move target specicic code to *-link.c files
- add R_XXX_RELATIVE (needed for PE)
arm-link.c
arm64-link.c
c67-link.c
i386-link.c
libtcc.c
tcc.h
tccelf.c
tests/libtcc_test.c
x86_64-link.c