History

Shared libraries also have entry points

This fix commit 32734680cb2a645d48f806edae5a5912e0759a23

Thomas Preud'homme committed 12 years ago

Commit 3352cb81 parent 32734681 file · +1 −1Browse files

Unified · Split

tccelf.c+1−1
@@ -2244,7 +2244,7 @@ static int elf_output_file(TCCState *s1, const char *filename) · 2243 unmodified lines
22442244 #ifdef TCC_ARM_EABI
22452245 ehdr.e_ident[EI_OSABI] = 0;
22462246 ehdr.e_flags = EF_ARM_EABI_VER4;
2247− if (file_type == TCC_OUTPUT_EXE)
2247+ if (file_type == TCC_OUTPUT_EXE || file_type == TCC_OUTPUT_DLL)
22482248 ehdr.e_flags |= EF_ARM_HASENTRY;
22492249 if (s1->float_abi == ARM_HARD_FLOAT)
22502250 ehdr.e_flags |= EF_ARM_VFP_FLOAT;