Supported Binary Types and Compiler Settings #4
Unanswered
deadly-lurker
asked this question in
Q&A
Replies: 1 comment 5 replies
-
these used to work. but tbh, the main test suite just uses i'll look into the FLAT support and expand the testsuite so it doesn't regress again. i know that has broken in the past due to common code changes. for FDPIC, i would only try bfin-linux-uclibc as that's the only one we ever validated in Linux userland. bfin-elf targets bare-metal. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've compiled the repo and am able to successfully run the Busbox sample binary. However none of the elf/bFLT files I compile will run. I've tried the following:
bfin-elf-gcc -mcpu=bf518
which gives the errorError mapping file: Cannot allocate memory
bfin-elf-gcc -mcpu=bf518 -mfdpic
which gives a segfault. Tried this option as I noticed the busybox binary had the fdpic flag set and I wasn't sure if this was necessary for QEMUbfin-uclinux-gcc -mcpu=bf518
gives the errorBINFMT_FLAT: reloc outside program 0x400003a (0 - 0x4560/0x3a60)
I've got the 2014 toolchain and have verified that the bFLT file at least does run on real hardware. The program I'm compiling to test is just a simple hello_world, which also compiles fine on native hardware
Could you give some insight or suggestions on where I'm going wrong and what I should be doing to get some code compiled to run on the bfin QEMU port? My end goal is to get bFLT files that have been compiled without any special compiler options running, but even FDPIC ELF binaries would be a step in the right direction
Thanks
Beta Was this translation helpful? Give feedback.
All reactions