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:
parent
b56099aeb4
commit
1032e7175a
1 changed files with 1 additions and 1 deletions
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 &&
|
||||
|
|
Loading…
Reference in a new issue