On 18 May 2015 at 13:50, Takumi Shimada <[email protected]> wrote:
> I rebased my branch.
> https://github.com/garasubo/frankenlibc/tree/stable-arm
>
> In this branch, I met another error as follow:
> /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: error:
> rumpkernel.o uses VFP register arguments, virtif_user.o does not
> /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: failed to
> merge target specific data of file virtif_user.o
> collect2: error: ld returned 1 exit status
>>
>> (can you rebase to master, I fixed the argument parsing with spaces as
>> well)
>>
>> Justin
>
>
OK, you didnt rebase quite to master, you were a few revisions back.
If you do update, then the following platform.sh works (you dont needs
the EXTRAFLAGS any more). I think that is the correct flags for your
hardware. Arm is very fussy!
--------------------
#!/bin/sh
export CC=${CC-arm-none-eabi-gcc}
export NM=${NM-arm-none-eabi-nm}
export AR=${AR-arm-none-eabi-ar}
export OBJCOPY=${OBJCOPY-arm-none-eabi-objcopy}
EXTRA_CFLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon"
EXTRA_AFLAGS="-mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon"
# this compiler is very fussy, planning to fix these issues at some point
EXTRA_CWARNFLAGS="-Wno-error"
LINKSCRIPT="${PWD}/platform/twrls1021a/link.ld"
EXTRA_LDSCRIPT="-T ${LINKSCRIPT}"
EXTRA_LDSCRIPT_CC="-Wl,-T,${LINKSCRIPT}"
----------------------