Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-04-16 Thread Steve Langasek
On Tue, Apr 01, 2008 at 11:15:37AM +0200, Josselin Mouette wrote: > On mar, 2008-04-01 at 01:21 -0700, Steve Langasek wrote: > > On Mon, Mar 31, 2008 at 06:57:48PM +0200, Kurt Roeckx wrote: > > > I also have to wonder that if we have something like this as default, > > > why -Bsymbolic-functions wo

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-04-01 Thread Josselin Mouette
On mar, 2008-04-01 at 01:21 -0700, Steve Langasek wrote: > On Mon, Mar 31, 2008 at 06:57:48PM +0200, Kurt Roeckx wrote: > > I also have to wonder that if we have something like this as default, > > why -Bsymbolic-functions would be a good default, and not -Bsymbolic. > > I'm told the difference is

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-04-01 Thread Josselin Mouette
On lun, 2008-03-31 at 22:46 +0200, Kurt Roeckx wrote: > Note also that I'm not sure at all that either -Bsymbolic-functions or > -Bsymbolic is a good idea. It is a very good idea for pluggable modules that are meant to be dlopen()ed, because it avoids their symbols to be overriden by completely un

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-04-01 Thread Steve Langasek
On Mon, Mar 31, 2008 at 06:57:48PM +0200, Kurt Roeckx wrote: > On Mon, Mar 31, 2008 at 05:34:05PM +0200, Loïc Minier wrote: > > (moving to debian-devel as requested by Kurt) > > On Fri, Mar 28, 2008, Steve Langasek wrote: > > > However, as Thiemo notes, this does break the expectation that LD_PRE

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Guillem Jover
Hi, On Mon, 2008-03-31 at 16:21:14 -0400, Aaron M. Ucko wrote: > Kurt Roeckx <[EMAIL PROTECTED]> writes: > > > I also have to wonder that if we have something like this as default, > > why -Bsymbolic-functions would be a good default, and not -Bsymbolic. > > It's also worth noting that the origi

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Daniel Jacobowitz
On Mon, Mar 31, 2008 at 10:23:59PM +, brian m. carlson wrote: > LD_PRELOAD would still be able to override it, because by default, ELF > shared libraries use relocations that must be serviced by ld.so. That part is incorrect. A hidden symbol binds at link time; ld.so is never given the c

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Mike Hommey
On Mon, Mar 31, 2008 at 10:23:59PM +, brian m. carlson wrote: > On Mon, Mar 31, 2008 at 10:51:00PM +0200, Mike Hommey wrote: >>> According to ld(1): >>> >>> -Bsymbolic-functions >>> When creating a shared library, bind references to global function >>> symbols to the definition w

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread brian m. carlson
On Mon, Mar 31, 2008 at 10:51:00PM +0200, Mike Hommey wrote: According to ld(1): -Bsymbolic-functions When creating a shared library, bind references to global function symbols to the definition within the shared library, if any. This option is only meaningful on ELF platforms which

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Mike Hommey
On Mon, Mar 31, 2008 at 08:09:04PM +, brian m. carlson wrote: > On Mon, Mar 31, 2008 at 06:57:48PM +0200, Kurt Roeckx wrote: >> On Mon, Mar 31, 2008 at 05:34:05PM +0200, Loïc Minier wrote: >>> I just wondered: is it possible to reverse/disable the effects of >>> -Bsymbolic-functions if LD_PRE

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Kurt Roeckx
On Mon, Mar 31, 2008 at 04:21:14PM -0400, Aaron M. Ucko wrote: > Kurt Roeckx <[EMAIL PROTECTED]> writes: > > > I also have to wonder that if we have something like this as default, > > why -Bsymbolic-functions would be a good default, and not -Bsymbolic. > > It's also worth noting that the origin

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Aaron M. Ucko
Kurt Roeckx <[EMAIL PROTECTED]> writes: > I also have to wonder that if we have something like this as default, > why -Bsymbolic-functions would be a good default, and not -Bsymbolic. It's also worth noting that the original proposal ( http://lists.debian.org/debian-devel/2007/12/msg00090.html )

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread brian m. carlson
On Mon, Mar 31, 2008 at 06:57:48PM +0200, Kurt Roeckx wrote: On Mon, Mar 31, 2008 at 05:34:05PM +0200, Loïc Minier wrote: I just wondered: is it possible to reverse/disable the effects of -Bsymbolic-functions if LD_PRELOAD is set? Or is it too late already and some information was definitely

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Kurt Roeckx
On Mon, Mar 31, 2008 at 05:34:05PM +0200, Loïc Minier wrote: > (moving to debian-devel as requested by Kurt) > > On Fri, Mar 28, 2008, Steve Langasek wrote: > > However, as Thiemo notes, this does break the expectation that LD_PRELOAD > > will be allowed to intercept symbols; so this is definitel

Re: Default value for CFLAGS/LDFLAGS set by dpkg

2008-03-31 Thread Loïc Minier
(moving to debian-devel as requested by Kurt) On Fri, Mar 28, 2008, Steve Langasek wrote: > However, as Thiemo notes, this does break the expectation that LD_PRELOAD > will be allowed to intercept symbols; so this is definitely a behavior > change with some possibly subtle consequences. I just