This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: problem with function bfd_slurp_armap from bfd library
- From: Ian Lance Taylor <ian at airs dot com>
- To: Marek KrzyÅowsk i <mkrzyz at interia dot pl>
- Cc: binutils at sourceware dot org
- Date: 28 Jun 2005 22:02:42 -0700
- Subject: Re: problem with function bfd_slurp_armap from bfd library
- References: <42C14C4F.2050106@interia.pl>
Marek KrzyÅowski <mkrzyz@interia.pl> writes:
> I have a question to developers of binutils, actually sending toward
> these people, who take care about bfd library. Accordance with my
> knowledge, function bfd_slurp_armap executes one of the function
> relevant to type of map (list of symbols) inserted in static library
> (COFF or BSD). Ranlib and ar, as I know, insert string of characters
> begins from '/' at the beginning of the static library. It is
> information for linker that it will be followed by list of
> symbols. Unfortunetely, this is BSD format, but bfd library (function
> bfd_slurp_armap) invokes function do_slurp_coff_armap!!! Why ?!
The archive map is stored as an entry in the archive, as though it
were a file itself. If the name is "__.SYMDEF", it is treated as a
BSD style archive map. If the name is simply "/" (which is,
incidentally, a name which can never be the name of a file), it is
treated as a COFF style archive map. ELF archives are the same as
COFF archives.
So, from your description, you need to find out why your BSD style
archive map was named "/" rather than "__.SYMDEF".
Ian