Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2010 17:18:06 +0100
From:      Tijl Coosemans <tijl@coosemans.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        svn-src-projects@freebsd.org, src-committers@freebsd.org
Subject:   Re: 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/...
Message-ID:  <201012061718.13823.tijl@coosemans.org>
In-Reply-To: <201012052024.oB5KOMUF007051@svn.freebsd.org>
References:  <201012052024.oB5KOMUF007051@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2421429.0QgHX6hdXy
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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
>=20
> 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.
>=20
> 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
>=20
> Modified: projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c	Sun Dec  5 1=
6:09:03 2010	(r216199)
> +++ projects/binutils-2.17/contrib/binutils/bfd/elfxx-ia64.c	Sun Dec  5 2=
0:24:22 2010	(r216200)
> @@ -5909,6 +5909,26 @@ elfNN_hpux_backend_symbol_processing (bf
> =20
>  #include "elfNN-target.h"
> =20
> +/* 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.

--nextPart2421429.0QgHX6hdXy
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iF4EABEIAAYFAkz9DMUACgkQfoCS2CCgtisMdgD/Y64VpPSBkDqWLDAnHy8zvVLj
O8MG6k7+tFp88h0w954A/0/hcYpEuQUiwpoZMgYz9qt0BkP4BXIppQucbncAwmoi
=uXqi
-----END PGP SIGNATURE-----

--nextPart2421429.0QgHX6hdXy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012061718.13823.tijl>