[osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Alan Modra
On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: > There seems to be a bug in GNU ld that does not link filter symbols > properly. I'd hardly call it a bug. By the sound of things, Sun has made some extensions to ELF that GNU ld doesn't understand. Someone (you perhaps) needs to teac

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Alan Modra wrote: On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: There seems to be a bug in GNU ld that does not link filter symbols properly. I'd hardly call it a bug. By the sound of things, Sun has made some extensions to ELF that GNU ld doesn't understand. Someone (you perha

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Alan Modra wrote: The question, I think, is why the ABS state of the symbol *definition* is inherited by the symbol state of the *reference*. A reference is typically undefined (UNDEF). Perhaps because the Sys V ABI says: SHN_ABS The symbol has an absolute value that will not change beca

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-27 Thread Rod Evans
Rod Evans wrote: Martin might have to add some c stub functions to his builds so that his libraries provide non-ABS filter symbols in the mean time. Arrr, but then the gnu linker probably doesn't grok symbol filter definitions from a mapfile, so the sc tub trick wouldn't provide much use would

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Martin Man
Rod Evans wrote: Alan Modra wrote: You seem to want some other sort of treatment of ABS symbols, as needing .plt or .got entries, I presume. I think that might be OK too, but may require some redesign of GNU ld. The trouble is that GNU ld has just one ABS section internally. That means that

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Joerg Schilling
Alan Modra <[EMAIL PROTECTED]> wrote: > On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: > > There seems to be a bug in GNU ld that does not link filter symbols > > properly. > > I'd hardly call it a bug. By the sound of things, Sun has made some > extensions to ELF that GNU ld doesn'

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Frank Hofmann
On Tue, 28 Nov 2006, Joerg Schilling wrote: Alan Modra <[EMAIL PROTECTED]> wrote: On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: There seems to be a bug in GNU ld that does not link filter symbols properly. I'd hardly call it a bug. By the sound of things, Sun has made some ex

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Joerg Schilling
Eric Botcazou <[EMAIL PROTECTED]> wrote: > > Well, Sun did invent ELF, so an extension to ELF made by Sun seems to be an > > official extension that should be supported by all tools. > > You're rewriting history, ELF was invented by UNIX System Laboratories. Can you prove that please? The first

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Joerg Schilling
Eric Botcazou <[EMAIL PROTECTED]> wrote: > > Can you prove that please? > > Take a look at the ELF spec. Pointers? This may still not prove your claim as the final ELF spec has been done by Sun and AT&T as part of the the joined work for SVr4. Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Sch

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Erast Benson
On Tue, 2006-11-28 at 11:22 +0100, Joerg Schilling wrote: > Alan Modra <[EMAIL PROTECTED]> wrote: > > > On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: > > > There seems to be a bug in GNU ld that does not link filter symbols > > > properly. > > > > I'd hardly call it a bug. By the s

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Rod Evans
Joerg Schilling wrote: This may still not prove your claim as the final ELF spec has been done by Sun and AT&T as part of the the joined work for SVr4. The original ELF spec was indeed created by these players. But, the design allowed for a great deal of extensibility. All of the UN*X's have

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Alan Modra
On Mon, Nov 27, 2006 at 05:52:08PM -0800, Rod Evans wrote: > Alan Modra wrote: > >On Mon, Nov 27, 2006 at 10:04:42PM +0100, Martin Man wrote: > >>There seems to be a bug in GNU ld that does not link filter symbols > >>properly. > > > >I'd hardly call it a bug. By the sound of things, Sun has made

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Alan Modra
On Tue, Nov 28, 2006 at 09:18:14AM +0100, Martin Man wrote: > P.S. so what should we do next? If you want the syms left undefined, this first hack I'd try is writing an add_symbol_hook that caused these syms to be ignored. -- Alan Modra IBM OzLabs - Linux Technology Centre __

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Eric Botcazou
> Well, Sun did invent ELF, so an extension to ELF made by Sun seems to be an > official extension that should be supported by all tools. You're rewriting history, ELF was invented by UNIX System Laboratories. -- Eric Botcazou ___ opensolaris-discuss m

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Eric Botcazou
> Can you prove that please? Take a look at the ELF spec. -- Eric Botcazou ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Ian Lance Taylor
[EMAIL PROTECTED] (Joerg Schilling) writes: [EMAIL PROTECTED] (Joerg Schilling) writes: > Eric Botcazou <[EMAIL PROTECTED]> wrote: > > > > Well, Sun did invent ELF, so an extension to ELF made by Sun seems to be > > > an > > > official extension that should be supported by all tools. > > > > Yo

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Joerg Schilling
Eric Botcazou <[EMAIL PROTECTED]> wrote: > > Can you prove that please? > > Take a look at the ELF spec. This is no proof as many things that have been created as joined work from Sun and AT&T fro SVr4 may look this way. And please stop responding to this as we did already see a useful repl

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Joerg Schilling
Ian Lance Taylor wrote: > > group meeting in 1987. > > ELF was used in SVR4 long before Sun adopted it when they moved from > SunOS to Solaris. That said, the version of ELF used in SVR4 was > closely based on the shared library implementation Sun used with the > a.out object file format in SunO

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread James Carlson
Alan Modra writes: > > The question, I think, is why the ABS state of the symbol *definition* is > > inherited by the symbol state of the *reference*. A reference is > > typically undefined (UNDEF). > > Perhaps because the Sys V ABI says: > > SHN_ABS > The symbol has an absolute value that w

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Darren J Moffat
Joerg Schilling wrote: Eric Botcazou <[EMAIL PROTECTED]> wrote: Can you prove that please? Take a look at the ELF spec. This is no proof as many things that have been created as joined work from Sun and AT&T fro SVr4 may look this way. And please stop responding to this as we did alrea

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-30 Thread Eric Botcazou
> And please stop responding to this as we did already see a useful reply > from a Sun employee. You did respond twice to the same message, I didn't. :-) Anyway, we all seem to agree that Sun doesn't "own" ELF. -- Eric Botcazou ___ opensolaris-discuss

Re: [osol-discuss] Re: GNU ld -shared fails to link filtered symbols on Solaris

2006-11-30 Thread Ian Lance Taylor
[EMAIL PROTECTED] (Joerg Schilling) writes: > Ian Lance Taylor wrote: > > > > group meeting in 1987. > > > > ELF was used in SVR4 long before Sun adopted it when they moved from > > SunOS to Solaris. That said, the version of ELF used in SVR4 was > > closely based on the shared library implemen