-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tccelf: cleanup sort_sections() & etc. fixes
with -Wl,-oformat=binary, executable code should come first. (for linux kernel image for example) Also: - simplify RELRO sections: create them as readonly, but add SHF_WRITE flag later when needed (i.e. relocations do exist) - tcc.h etc: exclude eh_frames on non-elf platforms - tccelf.c:tcc_load_object_file(): don't load debug sections when linking without -g (special dwarf case in relocate_section() wont work when dwlo/hi were not initialized). - tcc.c: avoid loop if something fails (ret < 0) without message (while failing without message should not happen either) - tccelf.c:tcc_load_alacarte: give message - tccpp.c: treat '# 123xyz' in asm file as comment - lib/Makefile: cleanup - libtcc.c: tcc_add_library(): fallback to try filename as is (also remove tcc_add_library_err())
- Loading branch information
grischka
committed
Nov 17, 2024
1 parent
3eb6352
commit dd2e5f8
Showing
9 changed files
with
141 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.