svn commit: r370589 - in head/devel: binutils/files sparc64-binutils
Baptiste Daroussin
bapt at FreeBSD.org
Fri Oct 10 14:38:40 UTC 2014
Author: bapt
Date: Fri Oct 10 14:38:39 2014
New Revision: 370589
URL: https://svnweb.freebsd.org/changeset/ports/370589
QAT: https://qat.redports.org/buildarchive/r370589/
Log:
Integrate a sparc64 patch from base version of binutils
Submitted by: marius
Added:
head/devel/binutils/files/patch-bfd_elfxx-sparc.c (contents, props changed)
Modified:
head/devel/sparc64-binutils/Makefile
Added: head/devel/binutils/files/patch-bfd_elfxx-sparc.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/binutils/files/patch-bfd_elfxx-sparc.c Fri Oct 10 14:38:39 2014 (r370589)
@@ -0,0 +1,26 @@
+--- bfd/elfxx-sparc.c.orig 2013-11-08 11:13:48.000000000 +0100
++++ bfd/elfxx-sparc.c 2014-10-10 16:30:23.316125000 +0200
+@@ -2942,12 +2942,14 @@
+ Elf_Internal_Rela *relend;
+ int num_relocs;
+ bfd_boolean is_vxworks_tls;
++ const struct elf_backend_data *bed;
+
+ htab = _bfd_sparc_elf_hash_table (info);
+ BFD_ASSERT (htab != NULL);
+ symtab_hdr = &elf_symtab_hdr (input_bfd);
+ sym_hashes = elf_sym_hashes (input_bfd);
+ local_got_offsets = elf_local_got_offsets (input_bfd);
++ bed = get_elf_backend_data (output_bfd);
+
+ if (elf_hash_table (info)->hgot == NULL)
+ got_base = 0;
+@@ -3528,6 +3530,8 @@
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
+ }
++ if (bed->elf_osabi == ELFOSABI_FREEBSD)
++ outrel.r_addend -= osec->vma;
+ }
+
+ outrel.r_info = SPARC_ELF_R_INFO (htab, rel, indx,
Modified: head/devel/sparc64-binutils/Makefile
==============================================================================
--- head/devel/sparc64-binutils/Makefile Fri Oct 10 14:18:34 2014 (r370588)
+++ head/devel/sparc64-binutils/Makefile Fri Oct 10 14:38:39 2014 (r370589)
@@ -1,6 +1,6 @@
# $FreeBSD$
-PORTREVISION= 2
+PORTREVISION= 3
COMMENT= GNU binutils for sparc64 cross-development
PKGNAMEPREFIX= sparc64-
PLIST= ${.CURDIR}/pkg-plist
More information about the svn-ports-all
mailing list