bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in linker (ld)


From: mars_4942
Subject: bug in linker (ld)
Date: Wed, 1 Aug 2001 14:48:26 -0400 (EDT)

Greetings -

Regarding an ld bug.

An attached tarball contains 4 small files that
demonstrate the problem.  When the "doit" script
is run, it prints:

    ld: BFD internal error, aborting at ../../bfd/section.c line 879 in 
bfd_map_over_sections

    ld: Please report this bug.

ld --version prints:

GNU ld 2.9.5
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf_i386
   i386linux



Also, a question:  Is is proper/possible to use an
executable as input to ld?  In particular, I want to
use the --wrap option to override some system calls
so that my own functions are called.  Something like:

    $ld prog my_recv.o --wrap recv -o my_prog

Where "my_recv.o" defines __wrap_recv.  All my current
attempts at doing this result in ld complaining that
_start is not defined or the executable "my_prog" seg
faults (even before gdb can do anything).

I realize that the various segments of the executable
may have to be re-organized.  Am I doing something too
weird?

Hope the bug report helps.  Thanks for any info.  If
there is a better place to ask this question, please let
me know.

- Jim
---------------------------------------------------------------------
Jim Irrer   3213 EECS Building           Phone : (734) 615-5482
Univ. of Mich. Staff Researcher          Fax   : (734) 763-8094
1301 Beal Avenue, Ann Arbor, MI 48105    Email : address@hidden

Attachment: bug.tar
Description: bug.tar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]