Imbrium Logo

Building process for m68k-elf-gcc


Compiler Options Used for Building Userland Programs:

Options that are passed to m68k-elf-gcc for uClinux and uClibc
-m68000 Platform is a Motorola 68000 or something that understands the 68000 command set
-Os Optimization for size
-g Produce debugging information in the operating system's native format
See also GNU C debugging options
-DCONFIG_OPENHARDWARE
-DEMBED
-Dlinux
-D__linux__
-Dunix
-D__uClinux__
-D__USE_BSD
Preprocessor Options that define Macros that are used in the C source code
-I/opt/dragonix/uClinux/lib/uClibc/include
-I/opt/dragonix/uClinux/lib/libm
-I/opt/dragonix/uClinux
-I/opt/dragonix/uClinux/linux-2.4.x/include
Add the directory dir to the list of directories to be searched for header files. Directories named by -I are searched before the standard system include directories.
-fno-builtin Don't recognize built-in functions that do not begin with __builtin_ as prefix.
See also Other built-in functions provided by GCC
-msep-data Data and text segments are separated and placed in different regions of memory. See XIP: eXecute In Place, where the .text (code) is executed from FLASH and the .data is loaded into RAM.
-c -o ...

Using a newer uClibc (e.g. 0.9.15 as of writing this)

The libraries that are used in linking elf programs with the uCdimm and the uClibc are placed in the directory

	/opt/dragonix/toolchain/m68k-elf/lib/m68000

Move this directory to m68000-old or something. Following the instructions to compile a the new uClibc libraries, copy all the output files in lib to this directory again, the do a make clean [...unfinished, sorry...]