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

Bug#837478: Static libraries - PIC or PIE?

2016-11-21 Thread Adrian Bunk
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 > blah blah, recompile with -fPIC errors. The error message is misleading, PIE is

Bug#837478: Static libraries - PIC or PIE?

2016-11-20 Thread Bill Allombert
On Sat, Nov 19, 2016 at 07:12:19PM -0700, Phillip Hellewell wrote: > 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

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,

Bug#837478: Static libraries - PIC or PIE?

2016-10-31 Thread Bálint Réczey
2016-10-23 16:06 GMT+02:00 Adrian Bunk : > On Sun, Oct 23, 2016 at 03:17:06PM +0200, Bálint Réczey wrote: >> Hi Adrian, >> >> 2016-10-23 13:26 GMT+02:00 Adrian Bunk : >> > On Sun, Oct 23, 2016 at 12:29:42PM +0200, Bálint Réczey wrote: >> >> Hi Ardian, >> > >> > Hi

Bug#837478: Static libraries - PIC or PIE?

2016-10-23 Thread Adrian Bunk
On Sun, Oct 23, 2016 at 03:17:06PM +0200, Bálint Réczey wrote: > Hi Adrian, > > 2016-10-23 13:26 GMT+02:00 Adrian Bunk : > > On Sun, Oct 23, 2016 at 12:29:42PM +0200, Bálint Réczey wrote: > >> Hi Ardian, > > > > Hi Bláint, ;-) > > I'm sorry. :-) No problem. :-) >... > >> This

Bug#837478: Static libraries - PIC or PIE?

2016-10-23 Thread Bálint Réczey
Hi Adrian, 2016-10-23 13:26 GMT+02:00 Adrian Bunk : > On Sun, Oct 23, 2016 at 12:29:42PM +0200, Bálint Réczey wrote: >> Hi Ardian, > > Hi Bláint, ;-) I'm sorry. :-) > >> 2016-10-23 10:18 GMT+02:00 Adrian Bunk : >> > Hi Bálint, >> > >> > there is some confusion

Bug#837478: Static libraries - PIC or PIE?

2016-10-23 Thread Adrian Bunk
On Sun, Oct 23, 2016 at 12:29:42PM +0200, Bálint Réczey wrote: > Hi Ardian, Hi Bláint, ;-) > 2016-10-23 10:18 GMT+02:00 Adrian Bunk : > > Hi Bálint, > > > > there is some confusion regarding how static libraries should be > > compiled now. > > > > Your bugs (e.g. #837350) say