[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: version scripts and symbol prefixes
From: |
Mike Frysinger |
Subject: |
Re: version scripts and symbol prefixes |
Date: |
Tue, 29 May 2007 19:17:32 -0400 |
User-agent: |
KMail/1.9.7 |
On Tuesday 29 May 2007, Peter O'Gorman wrote:
> On May 29, 2007, at 1:59 AM, Mike Frysinger wrote:
> > i just came across libupnp which uses some libtool functionality to
> > generate a
> > list of exported symbols and pass it to ld so that only the ones
> > that are
> > part of the ABI get exported ... however, this code doesnt take symbol
> > prefixes into account so in my case, the generated library doesnt
> > include any
> > global symbols ;(
> >
> > libupnp is using libtool-1.5.22 but a quick glance at current CVS head
> > indicates this is still a problem ... can someone correct me ? i'd
> > just run
> > a small cpp test and see what __USER_LABEL_PREFIX__ is set to ..
> > gcc always
> > defines this and in my case, it's:
> > #define __USER_LABEL_PREFIX__ _
> > unless someone has some cool ld/as/string foo to perform a similar
> > test on
> > object code ...
>
> What system are you running on?
build = powerpc-linux-gnu
host = bfin-linux-uclibc
looking at just libupnp/ixml/.libs/:
address@hidden 0 .libs $ head -n 5 libixml.exp
ixmlAttr_free
ixmlAttr_init
ixmlCDATASection_free
ixmlCDATASection_init
ixmlCloneDOMString
address@hidden 0 .libs $ head -n 5 libixml.ver
{ global:
ixmlAttr_free;
ixmlAttr_init;
ixmlCDATASection_free;
ixmlCDATASection_init;
address@hidden 0 .libs $ readelf -s libixml.so | egrep 'ixmlAttr_(free|init)'
138: 00004360 26 FUNC LOCAL DEFAULT 10 _ixmlAttr_init
198: 00004348 22 FUNC LOCAL DEFAULT 10 _ixmlAttr_free
those LOCAL should obviously be GLOBAL :)
-mike
signature.asc
Description: This is a digitally signed message part.
- version scripts and symbol prefixes, Mike Frysinger, 2007/05/29
- Re: version scripts and symbol prefixes, Peter O'Gorman, 2007/05/29
- Re: version scripts and symbol prefixes,
Mike Frysinger <=
- Re: version scripts and symbol prefixes, Peter O'Gorman, 2007/05/29
- Re: version scripts and symbol prefixes, Mike Frysinger, 2007/05/29
- Re: version scripts and symbol prefixes, Mike Frysinger, 2007/05/30
- Re: version scripts and symbol prefixes, Peter O'Gorman, 2007/05/30
- Re: version scripts and symbol prefixes, Mike Frysinger, 2007/05/30