gnupic: gplink missing symbols


Previous by date: 20 Jan 2005 15:52:09 +0000 Re: Linux PIC software and hardware, Geoff Horn
Next by date: 20 Jan 2005 15:52:09 +0000 Re: gplink missing symbols, Gabor Kiss [Bitman]
Previous in thread:
Next in thread: 20 Jan 2005 15:52:09 +0000 Re: gplink missing symbols, Gabor Kiss [Bitman]

Subject: gplink missing symbols
From: "Vangelis Rokas" ####@####.####
Date: 20 Jan 2005 15:52:09 +0000
Message-Id: <002d01c4ff07$f52a2390$47f0673e@Odyssey>

There is an issue with gplink when resolving symbols from archives.
The problem appears when linking an object with two or more archives
and the later archives depend on symbols defined in the earlier archive.

An example would be like this:

gplink -m -o out main.o lib1.lib lib2.lib

Suppose that lib1.lib contains the symbol foo1
and lib2.lib uses this symbol.

gplink exits with missing symbol error message.

This could be fixed by modifying build_tables in gplink/gplink.c
to pass twice while loop around the scan_archives() function
call.
This way missing symbols from libraries that will be introduced
in later libraries (i.e. lib2.lib) can be resolved by symbols in earlier
libraries (i.e. lib1.lib).

In fact 'twice' might not be the appropriate number, but we could
continue passing until the is no change in the result of count_missing()
function.

What's you opinion Craig?

regards,
Vangelis



Previous by date: 20 Jan 2005 15:52:09 +0000 Re: Linux PIC software and hardware, Geoff Horn
Next by date: 20 Jan 2005 15:52:09 +0000 Re: gplink missing symbols, Gabor Kiss [Bitman]
Previous in thread:
Next in thread: 20 Jan 2005 15:52:09 +0000 Re: gplink missing symbols, Gabor Kiss [Bitman]


Powered by ezmlm-browse 0.20.