tinycc/lib
herman ten brugge 50b4f320dc lazy binding
Currently tcc does not use lazy binding. It puts all relocations in the RELX
section and solve them all at startup.
This was not working on bsd.

tcc.h:
- New RELPLT_SECTION_FMT for plt relocations
- New entry relocplt in struct Section

tccelf.c:
- put_elf_reloca: put R_JMP_SLOT in relocplt section
- build_got_entries*: Use two passes because R_JMP_SLOT and R_GLOB_DAT
                      can not be intermixed on some targets (arm, arm64)
- layout_sections: Calculate correct size relocplt section for DT_ values.
                   Make sure relocplt is last
- fill_dynamic: Add DT_ values when got is filled
                move DT_VERSYM because dynamic linker cannot handle it standone
- Add note section for NetBSD

arm-link.c/arm64-link.c/i386-link.c/riscv64-link.c/x86_64-link.c:
- fill got table with pointer to plt section or symbol value in case
  of TCC_OUTPUT_MEMORY

arm-link.c/arm64-link.c:
- fix offset first plt entry

i386-link.c/x86_64-link.c:
- use correct reloc entry
- use relofs - sizeof (ElfW_Rel) because the reloc is already done

lib/bcheck.c:
- no __libc_freeres on FreeBSD and NetBSD

tests/Makefile:
- Add -fno-stack-protector for OpenBSD

tests/tests2/Makefile:
- disable 106_pthread/114_bound_signal
2020-12-18 15:24:32 +01:00
..
alloca86_64-bt.S rework leading underscores 2020-07-06 13:00:47 +02:00
alloca86_64.S rework leading underscores 2020-07-06 13:00:47 +02:00
alloca86-bt.S Bound checking fixes 2020-10-01 17:09:09 +02:00
alloca86.S rework leading underscores 2020-07-06 13:00:47 +02:00
alloca-arm.S cross-compilers: allow individual configuration 2017-02-23 08:41:57 +01:00
armeabi.c cross-compilers: allow individual configuration 2017-02-23 08:41:57 +01:00
armflush.c arm: Don't override syscall implementation 2019-11-06 01:01:56 +11:00
bcheck.c lazy binding 2020-12-18 15:24:32 +01:00
bt-dll.c rework leading underscores 2020-07-06 13:00:47 +02:00
bt-exe.c Fix testcase 114 for macos 2020-09-17 08:22:53 +02:00
bt-log.c rework leading underscores 2020-07-06 13:00:47 +02:00
dsohandle.c Define __dso_handle in libtcc1.a 2019-06-22 01:38:43 +02:00
fetch_and_add_arm64.S Fix fetch_and_add code 2020-06-18 07:21:48 +02:00
fetch_and_add_arm.S Call __bound_main_arg at startup 2020-06-22 14:55:27 +02:00
fetch_and_add_riscv64.S Fix fetch_and_add code 2020-06-18 07:21:48 +02:00
lib-arm64.c Fix conversions of subnormals to long double 2020-07-15 22:02:02 +02:00
libtcc1.c libtcc1.c: cleanup fp2ull 2020-09-17 20:25:31 +02:00
Makefile replace native platform macros in the compiler 2020-12-17 12:39:16 +01:00
va_list.c Struct va_arg fix 2020-09-17 08:42:28 +02:00