Binutils: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Binutils
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## Overview | |
| 2 | + | ||
| 3 | + | In most cases of cross-compiling from one platform to another you need cross binutils, i.e. assembler, linker, and so on. | |
| 4 | + | ||
| 5 | + | ## Building your own binutils | |
| 6 | + | ||
| 7 | + | If they are not readily available for your combination of host and target platform, you can compile them from the sources from their home page (http://www.gnu.org/software/binutils/). | |
| 8 | + | ||
| 9 | + | This is a quite typical configure for the binutils, in particular useful together with fpc: | |
| 10 | + | ||
| 11 | + | ``` bash | |
| 12 | + | ./configure \ | |
| 13 | + | --target=arm-linux \ | |
| 14 | + | --prefix=/usr/local/lib/arm-linux \ | |
| 15 | + | --bindir=/usr/local/bin --mandir=/usr/local/share/man --infodir=/usr/local/share/info \ | |
| 16 | + | --program-prefix=arm-linux \ | |
| 17 | + | --disable-werror | |
| 18 | + | ``` | |
| 19 | + | ||
| 20 | + | for Unix/Linux-like targets, the options target and prefix are fairly straight forward, but not for others. | |
| 21 | + | ||
| 22 | + | List of options: | |
| 23 | + | ||
| 24 | + | | Platform | Target | Prefix | | |
| 25 | + | |--------------------|-----------------------|-----------------| | |
| 26 | + | | Windows (32 bit) | i386-mingw32 | i386-win32 | | |
| 27 | + | | Win CE (Intel) | i386-wince | i386-wince | | |
| 28 | + | | Win CE (arm) | arm-wince-pe | arm-wince | | |
| 29 | + | | Win CE (i386) | i386-wince | i386-wince | | |
| 30 | + | | Solaris | i386-solaris | i386-solaris | | |
| 31 | + | | OS/2 | i386-os2-emx | i386-os2 | | |
| 32 | + | | go32v2 | i386-go32 | i386-go32v2 | | |
| 33 | + | | i386-netbsd | i386-netbsdelf-gnu | i386-netbsd | | |
| 34 | + | | Symbian OS | i386-? | i386-? | | |
| 35 | + | | Mac OS X (i386) | i386-darwin | i386-darwin | | |
| 36 | + | | Mac OS X (PowerPC) | powerpc-darwin | powerpc-darwin | | |
| 37 | + | | Mac OS X (x86-64) | x86_64-darwin | x86_64-darwin | | |
| 38 | + | | iPhoneOS | arm-darwin? | arm-darwin? | | |
| 39 | + | | Amiga (classic) | m68k-amiga | m68k-amiga | | |
| 40 | + | | Amiga OS | powerpc-? | powerpc-? | | |
| 41 | + | | AROS (i386) | i386-aros | i386-aros | | |
| 42 | + | | MorphOS | ppc-morphos | powerpc-morphos | | |
| 43 | + | | arm-gba | arm-thumb-elf | arm-gba | | |
| 44 | + | | arm-nds | arm-thumb-elf | arm-nds | | |
| 45 | + | | arm-embedded | arm-elf | arm-embedded | | |
| 46 | + | | arm-symbian | ? | ? | | |
| 47 | + | | arm-PalmOS | ? | ? | | |
| 48 | + | | arm-linux | arm-linux | arm-linux | | |
| 49 | + | | sparc-linux | sparc-linux | sparc-linux | | |
| 50 | + | | sparc-solaris | sparc-solaris | sparc-solaris | | |
| 51 | + | | m68k-linux | m68k-linux | m68k-linux | | |
| 52 | + | | m68k-netbsd | m68k-netbsdelf | m68k-netbsd | | |
| 53 | + | | m68k-embedded | m68k-elf | m68k-embedded | | |
| 54 | + | | mipsel-linux | mipsel-linux | mipsel-linux | | |
| 55 | + | | i8086-msdos | msdos-nasm and linker | 8086-msdos | | |
| 56 | + | | x86_64-w64 | x86_64-w64-mingw32 | x86_64-w64 | | |
| 57 | + | | | | | | |
| 58 | + | ||
| 59 | + | --- | |
| 60 | + | *From the Free Pascal wiki, page "Binutils", as it stood on 2020-05-03 after a change by E-ric, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
