Bug#837478: Static libraries - PIC or PIE?

2016-11-21 Thread Phillip Hellewell
On Mon, Nov 21, 2016 at 9:21 AM, Adrian Bunk wrote: > On Sat, Nov 19, 2016 at 07:12:19PM -0700, Phillip Hellewell wrote: >>... >> - Now tries to link a few of the libraries statically (e.g., >> libicuuc.a). ld blows up with a bunch of relocation R_X86_64_32S, blah &g

Bug#837478: Static libraries - PIC or PIE?

2016-11-19 Thread Phillip Hellewell
Consider this use case for an end user with 64-bit Debian 9: - Compiles an executable with gcc, linking a few libraries like ICU, openssl, bz2, etc. Works fine. - Now tries to link a few of the libraries statically (e.g., libicuuc.a). ld blows up with a bunch of relocation R_X86_64_32S, b