Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config Static PIE should have no ...



details:   https://anonhg.NetBSD.org/src/rev/f17eb7b991a5
branches:  trunk
changeset: 324612:f17eb7b991a5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jul 12 21:39:24 2018 +0000

description:
Static PIE should have no linker, otherwise it isn't really static.

diffstat:

 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 13ea36ed06b6 -r f17eb7b991a5 external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h    Thu Jul 12 21:38:16 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h    Thu Jul 12 21:39:24 2018 +0000
@@ -89,7 +89,7 @@
        %{rdynamic:-export-dynamic} \
        %(netbsd_link_ld_elf_so)} \
      %{static:-static \
-       %{pie: %(netbsd_link_ld_elf_so)}}} \
+       %{pie: --no-dynamic-linker}}} \
    %{!shared:%{!nostdlib:%{!nodefaultlibs:\
      %{%:sanitize(address): -lasan } \
      %{%:sanitize(undefined): -lubsan}}}}"



Home | Main Index | Thread Index | Old Index