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 in many cases also

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 regarding how static libraries shou

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 "Please build libfoo

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 -fPIC, because then

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 PIC),