Are FLAT binaries still supported?

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Jul 4 10:03:05 UTC 2013


On 12 May 2013 02:24, Adam Nielsen <a.nielsen at shikadi.net> wrote:
> Hi all,
>
> I'm trying to build a firmware for an ARM7TDMI platform (no MMU), which
> means uClibc won't support ELF files and requires I use FLAT executables.
>
> Unfortunately I can't figure out how to make this work.  I had to edit the
> Makefile as it was complaining about missing crti.o files, but I created
> dummy ones and that seemed to work.  I'll send a patch through for this if I
> can get the whole thing working.
>
> But the rest of my buildroot-generated toolchain seems to insist on
> producing ELF files.  If I try to force use of elf2flt I get confusing
> errors:

Last time i looked, buildroot had no flat support. Better ask on the
buildroot ML, ISTR that e.g. uclinux, umong others had flat, fyi.

thanks,
>
> arm-buildroot-linux-uclibcgnueabi-gcc test.c -o test -Wl,-elf2flt
> buildroot/host/usr/arm-buildroot-linux-uclibcgnueabi/bin/ld.real: error: no
> memory region specified for loadable section `.ARM.extab'
> collect2: error: ld returned 1 exit status
>
> What does this mean?  Do I need to do anything special when compiling the
> toolchain to use FLAT binaries, other than enabling elf2flt support?  Can I
> make GCC generate FLAT executables by default without specifying
> -Wl,-elf2flt?


More information about the uClibc mailing list