Displaying 8 results from an estimated 8 matches for "libexp".
Did you mean:
libexa
2018 Mar 23
2
LLVM gold plugin do not add llvm instrinsics symbols to the linker symbol table
...vations with the community.
Brief summary
If I create a static library with a custom version of 'exp()' math function and link it as follows:
$ clang -O0 -ffast-math -flto a.o -L. -Wl,-Bstatic -lexp -Wl,-Bdynamic -lm
exp gets resolved from libm instead of my static library (libexp.a) even though the static library appears first on the link command line.
Reproducer
1) As a reproducer I built a tiny static library (with the name libexp.a) with exp function defined:
$ cat exp.c
double exp (double x)
{
return x;
}
$ clang -c exp.c
$ ar -r libexp.a exp.o
$ nm -...
2018 Mar 23
0
LLVM gold plugin do not add llvm instrinsics symbols to the linker symbol table
A couple questions/notes so I can understand better:
Without -flto, a.o ends up with a reference to __exp_finite, which also
would not be satifisfied out of libexp.a. Do you also have an
implementation of __exp_finite in your libexp.a?
Can you build with -fno-builtin, or -fno-builtin-exp etc? That results in a
reference to __exp_finite in the .o bitcode (which of course has the same
issue I mentioned above, but is consistent). That seems to be the option
you...
2018 Mar 23
2
LLVM gold plugin do not add llvm instrinsics symbols to the linker symbol table
Hello Teresa,
> Without -flto, a.o ends up with a reference to __exp_finite,
That’s correct.
> which also would not be satifisfied out of libexp.a.
That’s not correct. Even if libexp.a would have __exp_finite, it wouldn’t be resolved from libexp.a, because of the behavior described in my first message.
> Do you also have an implementation of __exp_finite in your libexp.a?
No, I don’t have __exp_finite in libexp.a. I presented complete c...
2018 Mar 23
0
LLVM gold plugin do not add llvm instrinsics symbols to the linker symbol table
...hts
On Fri, Mar 23, 2018 at 9:37 AM, Bakhvalov, Denis <denis.bakhvalov at intel.com
> wrote:
> Hello Teresa,
>
>
>
> > Without -flto, a.o ends up with a reference to __exp_finite,
>
> That’s correct.
>
>
>
> > which also would not be satifisfied out of libexp.a.
>
> That’s not correct. Even if libexp.a would have __exp_finite, it wouldn’t
> be resolved from libexp.a, because of the behavior described in my first
> message.
>
I'm asking specifically about the non-LTO case.
>
>
> > Do you also have an implementation of __e...
2018 Mar 26
1
LLVM gold plugin do not add llvm instrinsics symbols to the linker symbol table
...ich is why I am suggesting that it might be appropriate to build with -fno-builtin (or -fno-builtin-exp) here –
> this solves the LTO issue as there will no longer be an llvm intrinsic in the bitcode
Yes, I just tested it and -fno-builtin helps in this case. I added definition of __exp_finite to libexp.a and now it was resolved from libexp.a (because no llvm intrinsics).
Best regards,
Denis Bakhvalov.
--------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy K...
2011 Apr 05
1
builder-debian libguestfs FAILED build step afa17809599f3ebc82c3feef025ca812fb26c9fe
...bian.org/debian/ unstable/main libperl5.10 amd64 5.10.1-19 [1150 B]
Get:129 http://ftp.uk.debian.org/debian/ unstable/main libdb4.7 amd64 4.7.25-12 [661 kB]
Get:130 http://ftp.uk.debian.org/debian/ unstable/main libgdbm3 amd64 1.8.3-9 [46.2 kB]
Get:131 http://ftp.uk.debian.org/debian/ unstable/main libexpat1 amd64 2.0.1-7 [137 kB]
Get:132 http://ftp.uk.debian.org/debian/ unstable/main mime-support all 3.51-1 [35.0 kB]
Get:133 http://ftp.uk.debian.org/debian/ unstable/main libccs3 amd64 3.0.12-2 [31.1 kB]
Get:134 http://ftp.uk.debian.org/debian/ unstable/main libcman3 amd64 3.0.12-2 [27.4 kB]
Get:135...
2011 Mar 29
0
builder-debian libguestfs success 58f7a5a4ac8cce77dfaded1c29f3ad382b4cc9a8
...bian.org/debian/ unstable/main libperl5.10 amd64 5.10.1-18 [1152 B]
Get:129 http://ftp.uk.debian.org/debian/ unstable/main libdb4.7 amd64 4.7.25-12 [661 kB]
Get:130 http://ftp.uk.debian.org/debian/ unstable/main libgdbm3 amd64 1.8.3-9 [46.2 kB]
Get:131 http://ftp.uk.debian.org/debian/ unstable/main libexpat1 amd64 2.0.1-7 [137 kB]
Get:132 http://ftp.uk.debian.org/debian/ unstable/main mime-support all 3.51-1 [35.0 kB]
Get:133 http://ftp.uk.debian.org/debian/ unstable/main libccs3 amd64 3.0.12-2 [31.1 kB]
Get:134 http://ftp.uk.debian.org/debian/ unstable/main libcman3 amd64 3.0.12-2 [27.4 kB]
Get:135...
2011 Apr 02
0
builder-debian libguestfs success 8bb22a2902fc723eb809086dd93f5b8ed2ec85b1
...bian.org/debian/ unstable/main libperl5.10 amd64 5.10.1-19 [1150 B]
Get:129 http://ftp.uk.debian.org/debian/ unstable/main libdb4.7 amd64 4.7.25-12 [661 kB]
Get:130 http://ftp.uk.debian.org/debian/ unstable/main libgdbm3 amd64 1.8.3-9 [46.2 kB]
Get:131 http://ftp.uk.debian.org/debian/ unstable/main libexpat1 amd64 2.0.1-7 [137 kB]
Get:132 http://ftp.uk.debian.org/debian/ unstable/main mime-support all 3.51-1 [35.0 kB]
Get:133 http://ftp.uk.debian.org/debian/ unstable/main libccs3 amd64 3.0.12-2 [31.1 kB]
Get:134 http://ftp.uk.debian.org/debian/ unstable/main libcman3 amd64 3.0.12-2 [27.4 kB]
Get:135...