Unified · Split
| @@ -318,7 +318,12 @@ typedef struct · 317 unmodified lines | ||
| 318 | 318 | #define SHT_REL 9 /* Relocation entries, no addends */ |
| 319 | 319 | #define SHT_SHLIB 10 /* Reserved */ |
| 320 | 320 | #define SHT_DYNSYM 11 /* Dynamic linker symbol table */ |
| 321 | −#define SHT_NUM 12 /* Number of defined types. */ | |
| 321 | +#define SHT_INIT_ARRAY 14 /* Array of constructors */ | |
| 322 | +#define SHT_FINI_ARRAY 15 /* Array of destructors */ | |
| 323 | +#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */ | |
| 324 | +#define SHT_GROUP 17 /* Section group */ | |
| 325 | +#define SHT_SYMTAB_SHNDX 18 /* Extended section indices */ | |
| 326 | +#define SHT_NUM 19 /* Number of defined types. */ | |
| 322 | 327 | #define SHT_LOOS 0x60000000 /* Start OS-specific */ |
| 323 | 328 | #define SHT_LOSUNW 0x6ffffffb /* Sun-specific low bound. */ |
| 324 | 329 | #define SHT_SUNW_COMDAT 0x6ffffffb |
| @@ -2321,6 +2321,9 @@ ST_FUNC int tcc_load_object_file(TCCState *s1, · 2320 unmodified lines | ||
| 2321 | 2321 | sh->sh_type != SHT_ARM_EXIDX && |
| 2322 | 2322 | #endif |
| 2323 | 2323 | sh->sh_type != SHT_NOBITS && |
| 2324 | + sh->sh_type != SHT_PREINIT_ARRAY && | |
| 2325 | + sh->sh_type != SHT_INIT_ARRAY && | |
| 2326 | + sh->sh_type != SHT_FINI_ARRAY && | |
| 2324 | 2327 | strcmp(sh_name, ".stabstr") |
| 2325 | 2328 | ) |
| 2326 | 2329 | continue; |