head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.07.20.08.02.51; author he; state Exp; branches; next ; commitid T3qBoQLspnpMLmOG; desc @@ 1.1 log @lang/gcc14: Add changes to make this build on NetBSD/macppc 11.0_RC6. This pulls over changes to config/rs6000/ and gcc/config.gcc from our in-tree gcc instance of gcc14, while preserving existing Homebrew- related changes to gcc/config.gcc. The most important fix is that on NetBSD/powerpc, -msecure-plt is enabled by default, so that resulting executables can be run with PAX_MPROTECT active. Otherwise, we end up with executables with sections which have both "write" and "execute" turned on, which PAX_MPROTECT rejects. Ref. the entries for .plt and .got sections in "readelf -a". Fixes PR#60439. Bump PKGREVISION for both gcc14 and gcc14-libs, to adhere to rules in comments, even though this *should* be a single-arch build fix, since I had to merge the patch to gcc/config.gcc. @ text @$NetBSD$ Carry over changes from in-tree gcc in an attempt at making this build on NetBSD/powerpc. --- gcc/config/rs6000/rs6000.cc.orig 13 Sep 2025 23:45:31 -0000 1.1.1.4 +++ gcc/config/rs6000/rs6000.cc 14 Sep 2025 00:07:22 -0000 1.5 @@@@ -96,7 +96,7 @@@@ of the include files, so that POWERPC_LINUX and POWERPC_FREEBSD are properly defined. */ #ifndef TARGET_IEEEQUAD_DEFAULT -#if !defined (POWERPC_LINUX) && !defined (POWERPC_FREEBSD) +#if !defined (POWERPC_LINUX) && !defined (POWERPC_FREEBSD) && !defined(POWERPC_NETBSD) #define TARGET_IEEEQUAD_DEFAULT 1 #else #define TARGET_IEEEQUAD_DEFAULT 0 @@@@ -21230,7 +21230,11 @@@@ if (flag_pic) return 3; else if (DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_ELFv2) +#if defined (POWERPC_NETBSD) + return 3; +#else return 2; +#endif else return 0; } @