Bugzilla Automation <[email protected]> has asked freebsd-gecko mailing list
<[email protected]> for maintainer-feedback:
Bug 233707: www/firefox: fails to build with -fstack-protector-{strong,all}
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233707
--- Description ---
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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"