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

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


Hi,

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
(lld)?

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


More information about the llvm-dev mailing list