svn commit: r216200 - in projects/binutils-2.17: contrib/binutils/bfd contrib/binutils/gas/config contrib/binutils/ld/emulparams gnu/usr.bin/binutils/libbfd sys/boot/ia64/efi sys/boot/ia64/ski sys/...

Tijl Coosemans tijl at coosemans.org
Mon Dec 6 16:47:20 UTC 2010


On Sunday 05 December 2010 21:24:22 Dimitry Andric wrote:
> Author: dim
> Date: Sun Dec  5 20:24:22 2010
> New Revision: 216200
> URL: http://svn.freebsd.org/changeset/base/216200
> 
> Log:
>   For ia64, add a proper 'elf64-ia64-freebsd' output format to BFD, so the
>   ELF branding for FreeBSD is done in the same way as amd64, i386 and
>   sparc.  Something similar should probably also be done for arm, mips and
>   powerpc.
> 
> Modified:
>   projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c
>   projects/binutils-2.17/contrib/binutils/bfd/targets.c
>   projects/binutils-2.17/contrib/binutils/gas/config/tc-ia64.c
>   projects/binutils-2.17/contrib/binutils/ld/emulparams/elf64_ia64_fbsd.sh
>   projects/binutils-2.17/gnu/usr.bin/binutils/libbfd/Makefile.ia64
>   projects/binutils-2.17/sys/boot/ia64/efi/ldscript.ia64
>   projects/binutils-2.17/sys/boot/ia64/ski/ldscript.ia64
>   projects/binutils-2.17/sys/conf/ldscript.ia64
> 
> Modified: projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c
> ==============================================================================
> --- projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c	Sun Dec  5 16:09:03 2010	(r216199)
> +++ projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c	Sun Dec  5 20:24:22 2010	(r216200)
> @@ -5909,6 +5909,26 @@ elfNN_hpux_backend_symbol_processing (bf
>  
>  #include "elfNN-target.h"
>  
> +/* FreeBSD support.  */
> +
> +#undef  TARGET_LITTLE_SYM
> +#define TARGET_LITTLE_SYM		bfd_elfNN_ia64_freebsd_vec
> +#undef  TARGET_LITTLE_NAME
> +#define TARGET_LITTLE_NAME		"elfNN-ia64-freebsd"
> +#undef  TARGET_BIG_SYM
> +#undef  TARGET_BIG_NAME
> +
> +#undef  ELF_OSABI
> +#define ELF_OSABI			ELFOSABI_FREEBSD

Does this change fix the problem described here?
http://lists.freebsd.org/pipermail/freebsd-ia64/2010-November/002773.html

About elf64-ia64-freebsd, I'm not sure it is needed. FreeBSD 4.0 and
older used non-standard ELF branding and that format got the name
elf32-i386-freebsd (and elf64-alpha-freebsd). Later versions of FreeBSD
use the standard method, but keep calling it elf32-i386-freebsd. Rather
than copying this practise to other architectures, maybe binutils should
be fixed for i386. It isn't used on amd64 and sparc64 either as far as I
can tell.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20101206/146858be/attachment.pgp


More information about the svn-src-projects mailing list