svn commit: r402616 - in head/devel/powerpc64-gcc: . files
Andreas Tobler
andreast at FreeBSD.org
Sun Nov 29 19:12:05 UTC 2015
Author: andreast (src committer)
Date: Sun Nov 29 19:12:03 2015
New Revision: 402616
URL: https://svnweb.freebsd.org/changeset/ports/402616
Log:
Add ELFv2 support for FreeBSD PowerPC.
Submitted by: nwhitehorn@
Approved by bapt@:
Added:
head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 (contents, props changed)
Modified:
head/devel/powerpc64-gcc/Makefile
Modified: head/devel/powerpc64-gcc/Makefile
==============================================================================
--- head/devel/powerpc64-gcc/Makefile Sun Nov 29 18:54:44 2015 (r402615)
+++ head/devel/powerpc64-gcc/Makefile Sun Nov 29 19:12:03 2015 (r402616)
@@ -2,7 +2,7 @@
PORTNAME= gcc
PORTVERSION= 5.2.0
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= devel
MASTER_SITES= GCC/releases/gcc-${DISTVERSION}
PKGNAMEPREFIX?= powerpc64-
Added: head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/powerpc64-gcc/files/patch-gcc-freebsd-powerpc64 Sun Nov 29 19:12:03 2015 (r402616)
@@ -0,0 +1,29 @@
+--- gcc/config/rs6000/freebsd64.h 2015-11-28 09:06:13.019999000 -0800
++++ gcc/config/rs6000/freebsd64.h 2015-11-28 09:16:10.459373000 -0800
+@@ -65,6 +65,13 @@
+ #define INVALID_64BIT "-m%s not supported in this configuration"
+ #define INVALID_32BIT INVALID_64BIT
+
++/* Use LINUX64 instead of FREEBSD64 for compat with e.g. sysv4le.h */
++#ifdef LINUX64_DEFAULT_ABI_ELFv2
++#define ELFv2_ABI_CHECK (rs6000_elf_abi != 1)
++#else
++#define ELFv2_ABI_CHECK (rs6000_elf_abi == 2)
++#endif
++
+ #undef SUBSUBTARGET_OVERRIDE_OPTIONS
+ #define SUBSUBTARGET_OVERRIDE_OPTIONS \
+ do \
+@@ -84,6 +91,12 @@
+ rs6000_isa_flags &= ~OPTION_MASK_RELOCATABLE; \
+ error (INVALID_64BIT, "relocatable"); \
+ } \
++ if (ELFv2_ABI_CHECK) \
++ { \
++ rs6000_current_abi = ABI_ELFv2; \
++ if (dot_symbols) \
++ error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \
++ } \
+ if (rs6000_isa_flags & OPTION_MASK_EABI) \
+ { \
+ rs6000_isa_flags &= ~OPTION_MASK_EABI; \
More information about the svn-ports-all
mailing list