diff options
| author | Daniel Glöckner <daniel-gl@gmx.net> | 2010-05-15 01:26:56 +0200 |
|---|---|---|
| committer | Daniel Glöckner <daniel-gl@gmx.net> | 2010-05-15 01:26:56 +0200 |
| commit | a867f4259774eb55ac3c34a83df5cc705c266295 (patch) | |
| tree | a46b83569aa9c1afeaf121ac1e6c70989534f180 /tccelf.c | |
| parent | 128e46f91bc07a1c609726c3a79b9546572573cd (diff) | |
| download | tinycc-a867f4259774eb55ac3c34a83df5cc705c266295.tar.gz tinycc-a867f4259774eb55ac3c34a83df5cc705c266295.tar.bz2 | |
don't discard SHT_((PRE)INIT|FINI)_ARRAY sections
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |
