don't discard SHT_((PRE)INIT|FINI)_ARRAY sections

This commit is contained in:
Daniel Glöckner
2010-05-15 01:26:56 +02:00
parent 128e46f91b
commit a867f42597
2 changed files with 9 additions and 1 deletions

View File

@ -2321,6 +2321,9 @@ ST_FUNC int tcc_load_object_file(TCCState *s1,
sh->sh_type != SHT_ARM_EXIDX &&
#endif
sh->sh_type != SHT_NOBITS &&
sh->sh_type != SHT_PREINIT_ARRAY &&
sh->sh_type != SHT_INIT_ARRAY &&
sh->sh_type != SHT_FINI_ARRAY &&
strcmp(sh_name, ".stabstr")
)
continue;