This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with function bfd_slurp_armap from bfd library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]