openbsd-ports/lang/gpc/patches/patch-gcc_config_rs6000_openbsd_h
bcallah c603e74ae8 Back in November, support for the obsolete PowerPC BSS PLT format was
removed: https://marc.info/?l=openbsd-cvs&m=154174152917901&w=2

This broke gpc on macppc. Add a patch that defaults to -msecure-plt on gpc.
This fixes the build and runtime on macppc.
2019-03-07 15:53:25 +00:00

17 lines
684 B
Plaintext

$OpenBSD: patch-gcc_config_rs6000_openbsd_h,v 1.1 2019/03/07 15:53:25 bcallah Exp $
Default to -msecure-plt
Index: gcc/config/rs6000/openbsd.h
--- gcc/config/rs6000/openbsd.h.orig
+++ gcc/config/rs6000/openbsd.h
@@ -131,3 +131,8 @@ Boston, MA 02111-1307, USA. */
#undef TRAMPOLINE_SIZE
#define TRAMPOLINE_SIZE 40
+#undef TARGET_SECURE_PLT
+#define TARGET_SECURE_PLT secure_plt
+
+#undef CC1_SECURE_PLT_DEFAULT_SPEC
+#define CC1_SECURE_PLT_DEFAULT_SPEC "-msecure-plt"