[llvm-bugs] Question about debug symbol

Robinson, Paul via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 17 07:41:21 PDT 2016


Please post questions to llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>.  This list is intended for automated bugzilla emails only.
Thanks,
--paulr

From: llvm-bugs [mailto:llvm-bugs-bounces at lists.llvm.org] On Behalf Of ??? via llvm-bugs
Sent: Wednesday, October 12, 2016 1:41 AM
To: llvm-bugs at lists.llvm.org
Subject: [llvm-bugs] Question about debug symbol


Hello LLVM admins,

I'm jinmoo seok, live in seout, Korea.



i have some problem about debug symbol.

i want to how to solve this problem, so i email you.



source code is :

#include<iostream>

int main() {

std::cout << "hello world" << std::endl;

return 0;

}



this is simple source.

but when i build it width debug symbol using clang, binary size is 100kb.

when using gcc, binary size is 19kb



i tryed "readelf -wi <binary>"

readelf: dwarf_loclist_form_expr_b: Invalid argument [dwarf_loclist_from_expr_b(279)]

<237>   DW_AT_data_member_location: 0 byte block:   ()

<4><23a>: Abbrev Number: 9 (DW_TAG_member)

<23b>   DW_AT_name        : (indirect string) __precision_

<23f>   DW_AT_type        : <0x799>

<243>   DW_AT_decl_file   : 2

<244>   DW_AT_decl_line   : 363

this message is repeatedly output.

what does message mean?



and i tryed "readelf -s <binary>"

<address>     0 NOTYPE  LOCAL  DEFAULT   31

this message is output too many.

why debug_str size is too big?



i test both clang34 and clang38

clang38's binary size is nearly as twice as clang34's binary.



i wan't to why this problem happen.



My environment:

i386

freebsd11




[http://mail.naver.com/readReceipt/notify/?img=vm%2Bqp6wl%2BHKmKxbm1re0aqw0Mx%2BSpxJCKx2%2FMxtrMopSpzU%2FMqC0aAUdFztZMqi4FuIo%2BrkSKxK5W4d5W4C5bX0q%2BzkR74FTWx%2FsWzwrWL9S%2B6%2BqtzwGbX3q74wn%2B4d5WXiN.gif]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161017/c61598db/attachment-0001.html>


More information about the llvm-bugs mailing list