public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* libbfd crashes when linking in elf_i386_relocate_section
@ 2004-06-25 13:34 Fabian Wenzel
  2004-06-25 14:48 ` H. J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Wenzel @ 2004-06-25 13:34 UTC (permalink / raw)
  To: binutils

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all!

A month ago I already posted this error to gnu.utils.bug, but apparently
the list is not working currently (I wrote a follow-up today, but it did
not appear in the newsgroup).

The problem is that the linker crashes when linking an own application with

/usr/bin/ld: BFD 2.14.90.0.7 20031029 Debian GNU/Linux internal error,
aborting at ../../bfd/elf32-i386.c line 2247 in elf_i386_relocate_section

I already tried binutils 2.15 which I built from the original tarball,
but the error remained.

This problem suddently appeared; I did not make any changes to the code
which was building correctly for years. I did some debugging and found
out that the linker crashes as soon as two of three "critical" objects
are linked together.

The abort() is called in the following lines:

if (off >= (bfd_vma) -2)
~            abort ();

I added some tracing code and figured out that it is indeed caused by
one of the "critical" object files with section *UND*.

If there is more that I can do in order to locate the problem, it would
be great if you could let me know. I am a little lost and don't know if
I am trying to figure things out in the right direction.

Thanks a lot,

	Fabian

- --
- ---------------------------------------------------------------
~  Dipl.-Ing. Fabian Wenzel           Technische UniversitÀt
~                                        Hamburg-Harburg
~  FON:    +49-40-42878-4226         4-08/1 Vision Systems
~  FAX:    +49-40-42878-2911        Harburger Schloßstraße 20
~  E-Mail: wenzel@tu-harburg.de       21079 Hamburg, Germany
- ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA3CnDbJzYO4mghQIRAll+AKCu65xEWwQTLRuCnCxT7igs9JCvFACfUz9B
+zvwSnvOwZj3x8fJy1jmZwo=
=KbqS
-----END PGP SIGNATURE-----

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

* Re: libbfd crashes when linking in elf_i386_relocate_section
  2004-06-25 13:34 libbfd crashes when linking in elf_i386_relocate_section Fabian Wenzel
@ 2004-06-25 14:48 ` H. J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H. J. Lu @ 2004-06-25 14:48 UTC (permalink / raw)
  To: Fabian Wenzel; +Cc: binutils

On Fri, Jun 25, 2004 at 03:33:55PM +0200, Fabian Wenzel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all!
> 
> A month ago I already posted this error to gnu.utils.bug, but apparently
> the list is not working currently (I wrote a follow-up today, but it did
> not appear in the newsgroup).
> 
> The problem is that the linker crashes when linking an own application with
> 
> /usr/bin/ld: BFD 2.14.90.0.7 20031029 Debian GNU/Linux internal error,
> aborting at ../../bfd/elf32-i386.c line 2247 in elf_i386_relocate_section
> 
> I already tried binutils 2.15 which I built from the original tarball,
> but the error remained.
> 
> This problem suddently appeared; I did not make any changes to the code
> which was building correctly for years. I did some debugging and found
> out that the linker crashes as soon as two of three "critical" objects
> are linked together.
> 
> The abort() is called in the following lines:
> 
> if (off >= (bfd_vma) -2)
> ~            abort ();
> 
> I added some tracing code and figured out that it is indeed caused by
> one of the "critical" object files with section *UND*.
> 
> If there is more that I can do in order to locate the problem, it would
> be great if you could let me know. I am a little lost and don't know if
> I am trying to figure things out in the right direction.

Please open a bugzilla bug report and provide a small testcase.


H.J.

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

end of thread, other threads:[~2004-06-25 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 13:34 libbfd crashes when linking in elf_i386_relocate_section Fabian Wenzel
2004-06-25 14:48 ` H. J. Lu

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).