Re: Symbols in .so even when using fvisibility=hidden

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Wohlrab <robert.wohlrab@xxxxxx> writes:

> I have the problem that I have a shared object which is mostly c with a
> relative small part C++. It is compiled with -fvisibility=hidden and only some
> small parts are exported. I noticed today that non-exported C++ symbols were
> also exported. This is quite mysterious because they are 5 functions from
> templates (looks related to std::vector with allocator stuff to me). The
> shared object is generated by source files from mupen64plus-core (can be
> found on bitbucket) using `make -C projects/unix/ all`.
>
> Is there any way to disable that symbols? The vector is not used outside that
> shared object and the interface of the shared object should be as clean as
> possible. I tried already with -fvisibility-inlines-hidden but without
> success.

In general this should not happen.  Can you provide a small standalone
test case which shows the problem?

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux