Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2018 05:28:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 233707] www/firefox: fails to build with -fstack-protector-{strong,all}
Message-ID:  <bug-233707-21738-uZ1FRd9sKI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233707-21738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233707-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko mailing =
list
<gecko@FreeBSD.org> for maintainer-feedback:
Bug 233707: www/firefox: fails to build with -fstack-protector-{strong,all}
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233707



--- 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233707-21738-uZ1FRd9sKI>