mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
Improve ELF on ARM
* set whether soft or hardfloat calling convention is used * mark ELF file has having an entry point when there is
This commit is contained in:
parent
28f0286479
commit
32734680cb
8
tccelf.c
8
tccelf.c
@ -2243,7 +2243,13 @@ static int elf_output_file(TCCState *s1, const char *filename)
|
||||
#ifdef TCC_TARGET_ARM
|
||||
#ifdef TCC_ARM_EABI
|
||||
ehdr.e_ident[EI_OSABI] = 0;
|
||||
ehdr.e_flags = 4 << 24;
|
||||
ehdr.e_flags = EF_ARM_EABI_VER4;
|
||||
if (file_type == TCC_OUTPUT_EXE)
|
||||
ehdr.e_flags |= EF_ARM_HASENTRY;
|
||||
if (s1->float_abi == ARM_HARD_FLOAT)
|
||||
ehdr.e_flags |= EF_ARM_VFP_FLOAT;
|
||||
else
|
||||
ehdr.e_flags |= EF_ARM_SOFT_FLOAT;
|
||||
#else
|
||||
ehdr.e_ident[EI_OSABI] = ELFOSABI_ARM;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user