Re: gcc binary format output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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'...


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux