[lldb-dev] [LLD] How to get rid of debug info of sections deleted by garbage collector

Venkata Ramanaiah Nalamothu via lldb-dev lldb-dev at lists.llvm.org
Wed Sep 19 20:34:31 PDT 2018


After compiling an example.cpp file with "-c -ffunction-sections" and
linking with "--gc-sections" (used ld.lld), I am still seeing debug info
for the sections deleted by garbage collector in the generated executable.

Are there any compiler/linker options and/or other tools in LLVM to get rid
of the above mentioned unneeded debug info?

If such options does not exist, what needs to be changed in the linker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180920/1b1faf9a/attachment.html>

More information about the lldb-dev mailing list