gcc binary format output
Kai Ruottu
karuottu@mbnet.fi
Tue Jul 18 12:25:00 GMT 2006
More information about the Binutils mailing list
Tue Jul 18 12:25:00 GMT 2006
- Previous message (by thread): Treat special MIPS common sections as common
- Next message (by thread): gcc binary format output
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Kai Ruottu kirjoitti: > Victor Roman Archidona kirjoitti: >> Thanks for your feedback Kai. In the binutils mailing list has been >> sent a patch that fixes the problem. The URL for anyone interested in >> it is: >> >> http://www.sourceware.org/ml/binutils/2006-07/msg00192.html >> > lets see what the 'x86_64-freebsd6.1' ones will do now. The given patches weren't enough :-( The resulted GNU linker complained about not finding the output format etc. A quick "how these things were done in 'alpha', 'i386' etc." comparison revealed that also the 'ld/emulparams' directory required the following patch in the current 'binutils-2.17.50.0.3' : ---------------- clip ---------------------------- *** elf_x86_64_fbsd.sh.orig Thu Mar 7 21:52:39 2002 --- elf_x86_64_fbsd.sh Tue Jul 18 15:06:58 2006 *************** *** 1,2 **** --- 1,3 ---- . ${srcdir}/emulparams/elf_x86_64.sh . ${srcdir}/emulparams/elf_fbsd.sh + OUTPUT_FORMAT="elf64-x86-64-freebsd" ---------------- clip ---------------------------- After adding this the produced binutils gave right labeled executables and more importantly the crosscompilers to the 'x86_64-freebsd6.1' target could be built, giving seemingly OK shared libraries with the following: kai@Dell:/data1/home/src/gcc-4.0.3/build/gcc> readelf -h libgcc_s.so.1 ELF Header: Magic: 7f 45 4c 46 02 01 01 09 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - FreeBSD ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 output got via the 'readelf -h'...
- Previous message (by thread): Treat special MIPS common sections as common
- Next message (by thread): gcc binary format output
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list