mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
ELF: include SHT_NOTE sections everywhere
... not just on the BSDs. Sometimes e.g. .note.ABI-tag is allocated and other sections might contain relocations referring to symbols in them. TCC doesn't do any special processing to them, like merging or somesuch, it just pastes them all together in normal link-editing behaviour. (Seen on a recent openSUSE with glibc 2.32, when the crt1.o file contains debug information)
This commit is contained in:
2
tccelf.c
2
tccelf.c
@@ -2781,8 +2781,8 @@ ST_FUNC int tcc_load_object_file(TCCState *s1,
|
||||
#endif
|
||||
#if TARGETOS_OpenBSD || TARGETOS_FreeBSD || TARGETOS_NetBSD
|
||||
sh->sh_type != SHT_X86_64_UNWIND &&
|
||||
sh->sh_type != SHT_NOTE &&
|
||||
#endif
|
||||
sh->sh_type != SHT_NOTE &&
|
||||
sh->sh_type != SHT_NOBITS &&
|
||||
sh->sh_type != SHT_PREINIT_ARRAY &&
|
||||
sh->sh_type != SHT_INIT_ARRAY &&
|
||||
|
||||
Reference in New Issue
Block a user