OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0022-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 740342a0e4b0b3af498964440918abba1a27ba33 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
  18. Date: Fri, 21 Aug 2020 07:03:00 +0000
  19. Subject: [PATCH 22/30] Alpine musl package provides libssp_nonshared.a. We
  20. link to it unconditionally, as otherwise we get link failures if some objects
  21. are -fstack-protector built and final link happens with -fno-stack-protector.
  22. This seems to be the common case when bootstrapping gcc, the piepatches do
  23. not seem to fully fix the crosstoolchain and bootstrap sequence wrt.
  24. stack-protector flag usage.
  25. ---
  26. gcc/gcc.c | 3 +--
  27. 1 file changed, 1 insertion(+), 2 deletions(-)
  28. diff --git a/gcc/gcc.c b/gcc/gcc.c
  29. index daeb4d0c8ea..6920bec0fa0 100644
  30. --- a/gcc/gcc.c
  31. +++ b/gcc/gcc.c
  32. @@ -894,8 +894,7 @@ proper position among the other output files. */
  33. #ifndef LINK_SSP_SPEC
  34. #ifdef TARGET_LIBC_PROVIDES_SSP
  35. -#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  36. - "|fstack-protector-strong|fstack-protector-explicit:}"
  37. +#define LINK_SSP_SPEC "-lssp_nonshared"
  38. #else
  39. #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \
  40. "|fstack-protector-strong|fstack-protector-explicit" \
  41. --
  42. 2.27.0