Blackfin and version scripts
Mike Frysinger
vapier at gentoo.org
Wed Jun 23 07:36:34 CEST 2010
On Wednesday, June 23, 2010 01:08:31 Ralf Wildenhues wrote:
> * Russ Allbery wrote on Tue, Jun 22, 2010 at 11:00:04PM CEST:
> > I would dearly, dearly love for libtool to pick up a --version-script
> > option that would pass in the full version script on platforms with
> > linkers that understand it, turn it into a symbol export list on
> > platforms that only support that,
>
> is this doable programmatically? Without a full version script parser?
i guess it depends on how much you want to support. the full syntax is here:
http://sourceware.org/binutils/docs/ld/VERSION.html
the non-C language support makes me think it'd require a lot of work to be
100% complete, but ive personally never seen people use that in version
scripts before (and ive quite a bit in the open source world). so if we kept
the scope to C-only symbols ...
the linker is pretty unforgiving of improperly formatted files (which works
for us). since we only need to mung the symbol nodes, and those:
- cannot have spaces
- must be terminated by a semicolon
- appear between the braces
seems like it wouldnt be too bad ?
alternative might be to do something like -export-symbols where libtool has
its own method for managing lists of symbols, but extend it to handle
versioning information as available with GNU/Solaris linkers. then that would
take care of outputting the version script with the symbol prefix which
libtool already knows.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20100623/7701d574/attachment.pgp>
More information about the Gcrypt-devel
mailing list