[MacPorts] #63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong
MacPorts
noreply at macports.org
Fri Sep 10 15:10:37 UTC 2021
#63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong
--------------------------+--------------------
Reporter: evanmiller | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: gcc7 cmocka |
--------------------------+--------------------
Comment (by kencu):
stack-protector-strong works too:
{{{
$ gcc-mp-7 -Wl,-v -fstack-protector-strong -o hello1 hello.c
collect2 version 7.5.0
/opt/local/bin/ld -dynamic -arch i386 -macosx_version_min 10.4
-weak_reference_mismatches non-weak -o hello1 -lcrt1.o
-L/opt/local/lib/gcc7/gcc/i386-apple-darwin8/7.5.0
-L/opt/local/lib/gcc7/gcc/i386-apple-darwin8/7.5.0/../../.. -v
/var/tmp//ccTyyx7f.o -lssp_nonshared -lssp -lgcc_s.10.4 -lgcc_ext.10.4
-lgcc -lSystem
@(#)PROGRAM:ld PROJECT:ld64-97.17
configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7
Library search paths:
/opt/local/lib/gcc7/gcc/i386-apple-darwin8/7.5.0
/opt/local/lib/gcc7
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/opt/local/bin/nm -n /var/tmp//ccTyyx7f.o
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63469#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list