https://sourceware.org/bugzilla/show_bug.cgi?id=20800

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Keno Fischer from comment #2)
> This is on stock Ubuntu 16.10. Try adding `-fPIE` to the compile invocation
> maybe? I know Debian recently switched that on by default.

Works for me:

[hjl@gnu-6 pr20800]$ cat test.c
#include <stdio.h>
int main(void) {
    printf("Hello World");
    return 0;
}
[hjl@gnu-6 pr20800]$ gcc -shared -mcmodel=large -fno-builtin -c test.c -fPIE
[hjl@gnu-6 pr20800]$ gcc -Wl,-rpath,/lib64 -m64 -Wl,--start-group test.o
-Wl,--end-group -pie
[hjl@gnu-6 pr20800]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to