https://llvm.org/bugs/show_bug.cgi?id=25133

Todd Fiala <todd.fi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|lldb-dev@lists.llvm.org     |todd.fi...@gmail.com

--- Comment #3 from Todd Fiala <todd.fi...@gmail.com> ---
Playing with the llvm_add_symbol_exports did not yield anything interesting for
me.  It requires generating export statements for everything to be publicly
exported.

What I *did* find that worked was the following:

Step #1: remove the step that sets up an explicit exports in the
source/API/CMakeLists.txt file for cmake.  (i.e. *don't* do the
llvm_add_symbol_exports.  It looks like the second that is called for the SB
API, then nothing else gets out, even with step 2 below).

Step #2: pass the following linker flag to cmake:
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=gold -Wl,-E"

My full build line was:
CC=/usr/bin/clang-3.6 CXX=/usr/bin/clang++-3.6 cmake -GNinja
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=gold -Wl,-E"
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold -DCMAKE_BUILD_TYPE=Debug ../llvm 2>&1 |
tee ~/logs/cmake-symbols.log

This got my --stack line to show useful info.

I'll add a cmake flag that lets us essentially say "skip explicit liblldb
exports".  Specifying that, along with whatever linker flags are needed to say
"export everything", takes care of this.

I'll get something up for review on that tomorrow morning.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to