From a867f4259774eb55ac3c34a83df5cc705c266295 Mon Sep 17 00:00:00 2001 From: Daniel Glöckner Date: Sat, 15 May 2010 01:26:56 +0200 Subject: don't discard SHT_((PRE)INIT|FINI)_ARRAY sections --- tccelf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 526c513..fb5f3f9 100644 --- a/tccelf.c +++ b/tccelf.c @@ -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; -- cgit v1.3.1