Re: devel/llvm: make clang build working static PIE programs

2016-07-06 Thread Tobias Ulmer
On Mon, Jul 04, 2016 at 06:00:38PM +0200, Stefan Kempf wrote: > ping? looking at gcc -dumpspecs, this makes sense. ok i'm working on the same thing for gcc 4.9 now (sparc64 for a start) > > Stefan Kempf wrote: > > clang currently links against /usr/lib/crt0.o when building > > a binary with

Re: devel/llvm: make clang build working static PIE programs

2016-07-04 Thread Stefan Kempf
ping? Stefan Kempf wrote: > clang currently links against /usr/lib/crt0.o when building > a binary with the -static -pie options. That makes such > programs segfault on startup (gcc 4.9 seems to have the same > problem). > > When building a static PIE program, we need to link against >

devel/llvm: make clang build working static PIE programs

2016-06-27 Thread Stefan Kempf
clang currently links against /usr/lib/crt0.o when building a binary with the -static -pie options. That makes such programs segfault on startup (gcc 4.9 seems to have the same problem). When building a static PIE program, we need to link against /usr/lib/rcrt0.o, as shown below. Bitrig has this