Re: Static libraries - PIC or PIE?

2016-10-31 Thread Bálint Réczey
ice when building libraries. > >>... >> I assume non-PIC static library used in a PIC shared library is the >> specific case mentioned in the original text, which still does not >> work on any architecture. > > Why do you want to forvce maintainers to go through great p

Re: 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

Re: 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

Re: 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

Re: Static libraries - PIC or PIE?

2016-10-23 Thread Bálint Réczey
Hi Ardian, 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 "Please build libfoo.a with -fPIC". > > Why do these say -fPIC and not -fPIE? I suggest using

Static libraries - PIC or PIE?

2016-10-23 Thread Adrian Bunk
Hi Bálint, there is some confusion regarding how static libraries should be compiled now. Your bugs (e.g. #837350) say "Please build libfoo.a with -fPIC". Why do these say -fPIC and not -fPIE? My current understanding is that a binNMU would recompile the the static library with PIE (not