[Bug 233707] www/firefox: fails to build with -fstack-protector-{strong,all}
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 2 05:28:49 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233707
Bug ID: 233707
Summary: www/firefox: fails to build with
-fstack-protector-{strong,all}
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: regression
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: gecko at FreeBSD.org
Reporter: jbeich at FreeBSD.org
CC: pkubaj at anongoth.pl, shawn.webb at hardenedbsd.org
Blocks: 214864
Flags: maintainer-feedback?(gecko at FreeBSD.org)
Assignee: gecko at FreeBSD.org
Firefox 63 enabled -Wl,-z,nocopyreloc which broke build with non-default
SSP_C?FLAGS but Firefox 65 enable -fstack-protector-strong which broke even
default builds.
$ cc -v
FreeBSD clang version 7.0.1 (branches/release_70 346007) (based on LLVM 7.0.1)
Target: x86_64-unknown-freebsd13.0
Thread model: posix
InstalledDir: /usr/bin
$ cat >a.c
#include <time.h>
int main() {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return 0;
}
$ cc -fstack-protector-strong -Wl,-z,nocopyreloc a.c
ld: error: unresolvable relocation R_X86_64_PC32 against symbol
'__stack_chk_guard'; recompile with -fPIC or remove '-z nocopyreloc'
>>> defined in /lib/libc.so.7
>>> referenced by a.c
>>> /tmp/a-b6cdf3.o:(main)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Referenced Bugs:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list