[Bug binutils/3609] `objcopy --only-keep-debug` segfaults in current cvs

2006-11-28 Thread vapier at gentoo dot org
-- What|Removed |Added CC||toolchain at gentoo dot org http://sourceware.org/bugzilla/show_bug.cgi?id=3609 --- You are receiving thi

[Bug binutils/3609] New: `objcopy --only-keep-debug` segfaults in current cvs

2006-11-28 Thread vapier at gentoo dot org
noticed after upgrading to 2.17.50.0.7 (the 2.17.50.0.6 and older work fine): $ mkdir build $ cd build $ CFLAGS='-pipe -O0 -g' ../configure $ make all-binutils $ ./binutils/objcopy --only-keep-debug ./binutils/objcopy ./binutils/objcopy.out Segmentation fault $ gdb --args ./binutils/objcopy --on

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

[Bug gas/3607] New: GAS errors on valid code complaining missing .cfi_endproc

2006-11-28 Thread raj dot khem at gmail dot com
The following example caused gas to generate error and eventually segfault. I could reproduce this on ppc and x86. arm works ok. xxx.s: Assembler messages: xxx.s:6: Error: previous CFI entry not closed (missing .cfi_endproc) Segmentation fault

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

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 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 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 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 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 ___ bug-binutils mail

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

GNU ld -shared fails to link filtered symbols on Solaris

2006-11-28 Thread Martin Man
Hi all, [ sorry for crossposting ] I have investigated a little bit GNU ld problems on Solaris related to filter symbols and I seem to have identified one test case which fails under all circumstances. I'd like to get some advices on how to best proceed next. The nice background info to the

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

2006-11-28 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-28 Thread Eric Botcazou
> Can you prove that please? Take a look at the ELF spec. -- Eric Botcazou ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils

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 ___ bug-binutils mailin

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