Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
README - elf2flt----------------Copyright (C) 2001-2003, SnapGear (www.snapgear.com)davidm@snapgear.comgerg@snapgear.comThis is Free Software, under the GNU Public Licence v2 or greater. SeeLICENSE.TXT for more details.Elf2flt with PIC, ZFLAT and full reloc support. Currently supportedtargets include: m68k/ColdFire, ARM, Sparc, NEC v850, MicroBlaze,h8300, SuperH, and Blackfin.COMPILING:You need an appropriate libbfd.a and libiberty.a for your target tobuild this tool. They are normally part of the binutils package.To compile elf2flt do:./configure --target=<ARCH> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>makemake installThe <ARCH> argument to configure specifies what the target architecture is.This should be the same target as you used to build the binutils and gcccross development tools. The --with-libbfd and --with-libiberty argumentsspecify where the libbfd.a and libiberty.a library files are to use.FILES:README - this fileconfigure - autoconf configuration shell scriptconfigure.in- original autoconf fileconfig.* - autoconf support scriptsMakefile.in - Makefile template used by configureelf2flt.c - the sourceflthdr.c - flat header manipulation programflat.h - header from uClinux kernel sourceself2flt.ld - an example linker script that works for C/C++ and uClinuxld-elf2flt - A linker replacement that implements a -elf2flt option for thelinker and runs elf2flt automatically for you. It autodetects PIC/non-PIC code and adjusts its option accordingly.It uses the environment variable FLTFLAGS when runningelf2flt. It runs /.../m68k-elf-ld.real to do the actuallinking.TIPS:The ld-elf2flt produces 2 files as output. The binary flat file X, andX.gdb which is used for debugging and PIC purposes.The '-p' option requires an elf executable linked at address 0. Theelf2flt.ld provided will generate the correct format binary when linkedwith the real linker with *no* '-r' option for the linker.The '-r' flag can be added to PIC builds to get contiguous code/data. Thisis good for loading application symbols into gdb (add-symbol-file XXX.gdb).