Re: DSO linking changes for wheezy

2010-11-16 Thread Julien Cristau
On Mon, Nov 15, 2010 at 21:29:07 -0500, Matt Turner wrote: On Mon, Nov 15, 2010 at 8:15 PM, Samuel Thibault sthiba...@debian.org wrote: Matt Turner, le Mon 15 Nov 2010 19:51:10 -0500, a écrit : On Mon, Nov 15, 2010 at 7:24 PM, Roger Leigh rle...@codelibre.net wrote: What's the actual

Re: DSO linking changes for wheezy

2010-11-16 Thread Julien Cristau
On Tue, Nov 16, 2010 at 01:14:09 +0100, Matthias Klose wrote: On 14.11.2010 13:19, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries.

Re: DSO linking changes for wheezy

2010-11-16 Thread Roger Leigh
On Tue, Nov 16, 2010 at 01:14:09AM +0100, Matthias Klose wrote: On 14.11.2010 13:19, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries.

Re: DSO linking changes for wheezy

2010-11-16 Thread Roland McGrath
This change is one I can agree with on technical grounds, though it will cause a great deal of pain in the short term. Have we got any estimates on exactly how much breakage will result before the change gets made? Fedora already made the change a full release cycles ago, and Fedora package

Re: DSO linking changes for wheezy

2010-11-16 Thread Bernhard R. Link
* Kurt Roeckx k...@roeckx.be [101114 14:08]: People have been claiming that constructors or init section are a possible problem. I have yet to see an example where it breaks. The following example is a bit constructed, but shows a silent change of run-time behaviour if --as-needed is passed:

Re: DSO linking changes for wheezy

2010-11-16 Thread Matthias Klose
On 16.11.2010 10:42, Roger Leigh wrote: On Tue, Nov 16, 2010 at 01:14:09AM +0100, Matthias Klose wrote: On 14.11.2010 13:19, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on

Re: DSO linking changes for wheezy

2010-11-16 Thread Florian Weimer
* Roland McGrath: I can't see why you think --as-needed is fundamentally wrong or unnecessary. It is fundamentally wrong because -lfoo means I demand that the initializers of libfoo.so run, whether or not I called anything in it. So it's more like static linking. 8-) IMHO, the current

Re: DSO linking changes for wheezy

2010-11-16 Thread Samuel Thibault
Florian Weimer, le Tue 16 Nov 2010 19:49:57 +0100, a écrit : * Roland McGrath: I can't see why you think --as-needed is fundamentally wrong or unnecessary. It is fundamentally wrong because -lfoo means I demand that the initializers of libfoo.so run, whether or not I called anything

Re: DSO linking changes for wheezy

2010-11-16 Thread Roger Leigh
On Tue, Nov 16, 2010 at 07:04:53PM +0100, Matthias Klose wrote: On 16.11.2010 10:42, Roger Leigh wrote: On Tue, Nov 16, 2010 at 01:14:09AM +0100, Matthias Klose wrote: On 14.11.2010 13:19, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm

Re: DSO linking changes for wheezy

2010-11-15 Thread Matthias Klose
On 15.11.2010 07:16, Roland McGrath wrote: mattst88 airlied_, does Fedora use --as-needed by default? Fedora 14 too? airlied_ mattst88: yes The naming of the options makes people easily confused. --no-add-needed is the only option Fedora's gcc passes. yes, OpenSuse is using --as-needed,

Re: DSO linking changes for wheezy

2010-11-15 Thread Matthias Klose
On 14.11.2010 16:06, Roger Leigh wrote: While I understand the rationale for --no-copy-dt-needed-entries for preventing encapsulation violations via indirect linking, I don't agree with the use of --as-needed *at all*. If a library has been explicitly linked in, it shouldn't be removed. This

Re: DSO linking changes for wheezy

2010-11-15 Thread Roger Leigh
On Mon, Nov 15, 2010 at 11:02:57PM +0100, Matthias Klose wrote: On 14.11.2010 16:06, Roger Leigh wrote: While I understand the rationale for --no-copy-dt-needed-entries for preventing encapsulation violations via indirect linking, I don't agree with the use of --as-needed *at all*. If a

Re: DSO linking changes for wheezy

2010-11-15 Thread Matthias Klose
On 14.11.2010 13:19, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries. The rationale is summarized in

Re: DSO linking changes for wheezy

2010-11-15 Thread Matthias Klose
On 16.11.2010 01:24, Roger Leigh wrote: On Mon, Nov 15, 2010 at 11:02:57PM +0100, Matthias Klose wrote: On 14.11.2010 16:06, Roger Leigh wrote: While I understand the rationale for --no-copy-dt-needed-entries for preventing encapsulation violations via indirect linking, I don't agree with the

Re: DSO linking changes for wheezy

2010-11-15 Thread Matt Turner
On Mon, Nov 15, 2010 at 7:24 PM, Roger Leigh rle...@codelibre.net wrote: What's the actual problem --as-needed is trying to solve? The answer is mainly unwanted libraries being linked in as a result of using pkg-config (and various other -config variants), though there are other, lesser,

Re: DSO linking changes for wheezy

2010-11-15 Thread Samuel Thibault
Matt Turner, le Mon 15 Nov 2010 19:51:10 -0500, a écrit : On Mon, Nov 15, 2010 at 7:24 PM, Roger Leigh rle...@codelibre.net wrote: What's the actual problem --as-needed is trying to solve? The answer is mainly unwanted libraries being linked in as a result of using pkg-config (and various

Re: DSO linking changes for wheezy

2010-11-15 Thread Roland McGrath
I can't see why you think --as-needed is fundamentally wrong or unnecessary. It is fundamentally wrong because -lfoo means I demand that the initializers of libfoo.so run, whether or not I called anything in it. -- To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org with a subject

Re: DSO linking changes for wheezy

2010-11-15 Thread Matt Turner
On Mon, Nov 15, 2010 at 8:15 PM, Samuel Thibault sthiba...@debian.org wrote: Matt Turner, le Mon 15 Nov 2010 19:51:10 -0500, a écrit : On Mon, Nov 15, 2010 at 7:24 PM, Roger Leigh rle...@codelibre.net wrote: What's the actual problem --as-needed is trying to solve? The answer is mainly

Re: DSO linking changes for wheezy

2010-11-14 Thread Julien Cristau
On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries. The rationale is summarized in http://wiki.debian.org/ToolChain/DSOLinking. I would like to know about

Re: DSO linking changes for wheezy

2010-11-14 Thread Kurt Roeckx
On Sun, Nov 07, 2010 at 04:19:10PM +, Roger Leigh wrote: On Fri, Oct 29, 2010 at 03:43:57PM +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries. The rationale is summarized in

Re: DSO linking changes for wheezy

2010-11-14 Thread Roger Leigh
On Sun, Nov 14, 2010 at 01:51:49PM +0100, Kurt Roeckx wrote: On Sun, Nov 07, 2010 at 04:19:10PM +, Roger Leigh wrote: On Fri, Oct 29, 2010 at 03:43:57PM +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and

Re: DSO linking changes for wheezy

2010-11-14 Thread Roger Leigh
On Sun, Nov 14, 2010 at 01:19:08PM +0100, Julien Cristau wrote: On Fri, Oct 29, 2010 at 15:43:57 +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries. The rationale is summarized in

Re: DSO linking changes for wheezy

2010-11-14 Thread Matt Turner
On Sun, Nov 14, 2010 at 10:06 AM, Roger Leigh rle...@codelibre.net wrote: On Sun, Nov 14, 2010 at 01:51:49PM +0100, Kurt Roeckx wrote: On Sun, Nov 07, 2010 at 04:19:10PM +, Roger Leigh wrote: On Fri, Oct 29, 2010 at 03:43:57PM +0200, Matthias Klose wrote: For wheezy I'm planning to

Re: DSO linking changes for wheezy

2010-11-14 Thread Adam Goode
On 11/14/2010 12:42 PM, Matt Turner wrote: Please ignore me if I've misunderstood the situation, firstly. Both Fedora and Gentoo are using --as-needed by default now. And from what I've read (google: site:blog.flameeyes.eu as-needed) --as-needed is certainly useful and prevents lots of

Re: DSO linking changes for wheezy

2010-11-14 Thread Matt Turner
On Sun, Nov 14, 2010 at 8:40 PM, Adam Goode a...@spicenitz.org wrote: On 11/14/2010 12:42 PM, Matt Turner wrote: Please ignore me if I've misunderstood the situation, firstly. Both Fedora and Gentoo are using --as-needed by default now. And from what I've read (google: site:blog.flameeyes.eu

Re: DSO linking changes for wheezy

2010-11-14 Thread Roland McGrath
mattst88 airlied_, does Fedora use --as-needed by default? Fedora 14 too? airlied_ mattst88: yes The naming of the options makes people easily confused. --no-add-needed is the only option Fedora's gcc passes. -- To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org with a subject of

Re: DSO linking changes for wheezy

2010-11-07 Thread Roger Leigh
On Fri, Oct 29, 2010 at 03:43:57PM +0200, Matthias Klose wrote: For wheezy I'm planning to change the linking behaviour for DSOs (turning on --as-needed and --no-copy-dt-needed-entries. The rationale is summarized in http://wiki.debian.org/ToolChain/DSOLinking. I would like to know about