tccelf.c: write section headers before sectionsmob
commit45cff8f03fe58a1ded52864bb6640998ea6775e5
authorgrischka <grischka>
Wed, 9 Oct 2024 21:15:05 +0000 (9 23:15 +0200)
committergrischka <grischka>
Sun, 13 Oct 2024 21:55:32 +0000 (13 23:55 +0200)
tree905c04eda1920c0677365771bbe156b8c04dbc7e
parentc21576f8a32715ab439690d18184b0e02022bbbd
tccelf.c: write section headers before sections

also avoid zero lenght PT_LOAD segments (which some musl
loaders seem to dislike)

Also:
- tccasm.c: support .section with flags: .section .xyz,"wx"
  (fixes e4d874d88a2ef874a9c2fd7c47d3d3a35ae986e2)
- tccgen,c:  add __builtin_unreachable()
- tccdefs.h: #define __has_attribute(x) 0
- tcc.c: tidy help for -std
- tcctools.c/execvp_win32: quote strings more correctly
- x86_64-gen.c:win32: set unwind begin-address to function-start
- github action: add aarch64-osx (M1) & i386-win32
- configure: consider 32-bit build on MSYS64 native
16 files changed:
.github/workflows/build.yml
Makefile
configure
include/tccdefs.h
tcc.c
tccasm.c
tccelf.c
tccgen.c
tccpe.c
tcctok.h
tcctools.c
tests/exec_section_in_asm.c [deleted file]
tests/tcctest.c
tests/tests2/133_exec_section_in_c.c [deleted file]
tests/tests2/133_exec_section_in_c.expect [deleted file]
x86_64-gen.c