public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
@ 2001-08-01  5:18 José Mª Pérez Cáncer
  2001-08-01  6:32 ` Alan Modra
  2001-08-01  8:45 ` H . J . Lu
  0 siblings, 2 replies; 6+ messages in thread
From: José Mª Pérez Cáncer @ 2001-08-01  5:18 UTC (permalink / raw)
  To: binutils

Hello. My name is Jose. I am trying to generate a shared library using
auto* toolset on a Linux machine. When the makefile runs the linker I
get the following message:

/bin/sh ./libtool --mode=link gcc  -Wall -W  -o libthinglass.la -rpath
/usr/local/lib/gtk/themes/engines -export-dynamic -avoid-version
thinglass_theme_draw.lo thinglass_theme_main.lo gtkbutton.lo
-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib
-ldl -lXi -lXext -lX11 -lm 
rm -fr .libs/libthinglass.la .libs/libthinglass.* .libs/libthinglass.*
(cd . && ln -s gtkbutton.lo gtkbutton.o)
gcc -shared  thinglass_theme_draw.lo thinglass_theme_main.lo
gtkbutton.lo  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/usr/local/lib  -L/usr/local/lib -L/usr/X11R6/lib
/usr/local/lib/libgtk.so /usr/local/lib/libgdk.so
/usr/local/lib/libgmodule.so /usr/local/lib/libglib.so -ldl -lXi -lXext
-lX11 -lm  -Wl,-soname -Wl,libthinglass.so -o .libs/libthinglass.so
/usr/bin/ld: bfd assertion fail elf32-i386.c:1816

and then it continues. The resulting shared object crashes ld.so.

Can anyone explain what is that assert detecting.

Thank you very much.

I am using these versions:
  GNU ld 2.11.2
  GNU assembler 2.11.2
  gcc version 2.95.2 19991024 (release)
  ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)
to create a shared lib on a
  Linux jm 2.4.5-xfs-1.0.1 #1 jue jul 12 07:38:16 CEST 2001 i586
GenuineIntel machine

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
  2001-08-01  5:18 /usr/bin/ld: bfd assertion fail elf32-i386.c:1816 José Mª Pérez Cáncer
@ 2001-08-01  6:32 ` Alan Modra
  2001-08-01 11:05   ` José Mª Pérez Cáncer
  2001-08-01  8:45 ` H . J . Lu
  1 sibling, 1 reply; 6+ messages in thread
From: Alan Modra @ 2001-08-01  6:32 UTC (permalink / raw)
  To: José Mª
	Pérez Cáncer
  Cc: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

On Wed, Aug 01, 2001 at 01:10:31PM +0200, José Mª Pérez Cáncer wrote:
> /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
> 
> and then it continues. The resulting shared object crashes ld.so.
> 
> Can anyone explain what is that assert detecting.

Without looking at the object files and libraries involved in your link,
I can't say much for sure, but I suspect you have hit a bug in the
handling of symbols that have non-default visibility.  The assert in
elf_i386_finish_dynamic_symbol is triggered by h->dynindx == -1, which
implies that (h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL) != 0,
otherwise the finish_dynamic_symbol function wouldn't have been called.

Can you make all the object files and libraries involved in the link
available to me, other than by posting to the list?  (Add -Wl,-t to the
gcc command line, and ld will tell you each of the files.)  I'd like to
track this bug down.

You may like to try H.J. Lu's latest binutils too.
ftp://ftp.kernel.org/pub/linux/devel/binutils/

Alan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
  2001-08-01  5:18 /usr/bin/ld: bfd assertion fail elf32-i386.c:1816 José Mª Pérez Cáncer
  2001-08-01  6:32 ` Alan Modra
@ 2001-08-01  8:45 ` H . J . Lu
  2001-08-08  6:47   ` Harshad R Joglekar
  1 sibling, 1 reply; 6+ messages in thread
From: H . J . Lu @ 2001-08-01  8:45 UTC (permalink / raw)
  To: José Mª
	Pérez Cáncer
  Cc: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

On Wed, Aug 01, 2001 at 01:10:31PM +0200, José Mª Pérez Cáncer wrote:
> 
> I am using these versions:
>   GNU ld 2.11.2

If you are running Linux, you should use my Linux binutils.



H.J.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
  2001-08-01  6:32 ` Alan Modra
@ 2001-08-01 11:05   ` José Mª Pérez Cáncer
  2001-08-01 11:13     ` H . J . Lu
  0 siblings, 1 reply; 6+ messages in thread
From: José Mª Pérez Cáncer @ 2001-08-01 11:05 UTC (permalink / raw)
  To: binutils; +Cc: Alan Modra, H . J . Lu

Alan Modra wrote:

> 
> You may like to try H.J. Lu's latest binutils too.
> ftp://ftp.kernel.org/pub/linux/devel/binutils/
> 
> Alan

I changed my binutils to version 2.11.90.0.25 and recompiled the code
and got the same problem, but this time the linker aborted and gave a
bit more info:

/usr/bin/ld: BFD internal error, aborting at elf32-i386.c line 1916 in
elf_i386_finish_dynamic_symbol

/usr/bin/ld: Please report this bug.

JM

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
  2001-08-01 11:05   ` José Mª Pérez Cáncer
@ 2001-08-01 11:13     ` H . J . Lu
  0 siblings, 0 replies; 6+ messages in thread
From: H . J . Lu @ 2001-08-01 11:13 UTC (permalink / raw)
  To: José Mª
	Pérez Cáncer
  Cc: binutils, Alan Modra

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

On Wed, Aug 01, 2001 at 06:57:58PM +0200, José Mª Pérez Cáncer wrote:
> Alan Modra wrote:
> 
> > 
> > You may like to try H.J. Lu's latest binutils too.
> > ftp://ftp.kernel.org/pub/linux/devel/binutils/
> > 
> > Alan
> 
> I changed my binutils to version 2.11.90.0.25 and recompiled the code
> and got the same problem, but this time the linker aborted and gave a
> bit more info:
> 
> /usr/bin/ld: BFD internal error, aborting at elf32-i386.c line 1916 in
> elf_i386_finish_dynamic_symbol
> 
> /usr/bin/ld: Please report this bug.
> 

Please provide a small testcase.


H.J.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: /usr/bin/ld: bfd assertion fail elf32-i386.c:1816
  2001-08-01  8:45 ` H . J . Lu
@ 2001-08-08  6:47   ` Harshad R Joglekar
  0 siblings, 0 replies; 6+ messages in thread
From: Harshad R Joglekar @ 2001-08-08  6:47 UTC (permalink / raw)
  To: binutils

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

I am not sure what HJ's version is; could someone enlighten me on it?

adva THANKS nce,
Harshad

"H . J . Lu" wrote:

> On Wed, Aug 01, 2001 at 01:10:31PM +0200, José Mª Pérez Cáncer wrote:
> >
> > I am using these versions:
> >   GNU ld 2.11.2
>
> If you are running Linux, you should use my Linux binutils.
>
> H.J.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-08  6:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-01  5:18 /usr/bin/ld: bfd assertion fail elf32-i386.c:1816 José Mª Pérez Cáncer
2001-08-01  6:32 ` Alan Modra
2001-08-01 11:05   ` José Mª Pérez Cáncer
2001-08-01 11:13     ` H . J . Lu
2001-08-01  8:45 ` H . J . Lu
2001-08-08  6:47   ` Harshad R Joglekar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).