<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim;"><p>Hello LLVM admins,</p><p>I'm jinmoo seok, live in seout, Korea.</p><p> </p><p>i have some problem about debug symbol.</p><p>i want to how to solve this problem, so i email you.</p><p> </p><p>source code is :</p><p style="margin-left: 20px;">#include<iostream></p><p style="margin-left: 20px;">int main() {</p><p style="margin-left: 40px;">std::cout << "hello world" << std::endl;</p><p style="margin-left: 40px;">return 0;</p><p style="margin-left: 20px;">}</p><p style="margin-left: 20px;"> </p><p style="margin-left: 0px;">this is simple source.</p><p style="margin-left: 0px;">but when i build it width debug symbol using clang, binary size is 100kb.</p><p style="margin-left: 0px;">when using gcc, binary size is 19kb</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;">i tryed "readelf -wi <binary>" </p><pre style='margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; background-color: rgb(239, 240, 241); word-wrap: normal; color: rgb(36, 39, 41); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;'><code style='margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; background-color: rgb(239, 240, 241); white-space: inherit;'>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</code></pre><p style="margin-left: 0px;">this message is repeatedly output.</p><p style="margin-left: 0px;">what does message mean?</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;">and i tryed "readelf -s <binary>"</p><p style="margin-left: 20px;"><address>     0 NOTYPE  LOCAL  DEFAULT   31</p><p style="margin-left: 0px;">this message is output too many.</p><p style="margin-left: 0px;">why debug_str size is too big?</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;">i test both clang34 and clang38</p><p style="margin-left: 0px;">clang38's binary size is nearly as twice as clang34's binary.</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;">i wan't to why this problem happen.</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;">My environment:</p><p style="margin-left: 0px;">i386</p><p style="margin-left: 0px;">freebsd11</p><p style="margin-left: 0px;"> </p><p style="margin-left: 0px;"> </p></div></body></html>
<table style="display:none"><tr><td><img src="http://mail.naver.com/readReceipt/notify/?img=vm%2Bqp6wl%2BHKmKxbm1re0aqw0Mx%2BSpxJCKx2%2FMxtrMopSpzU%2FMqC0aAUdFztZMqi4FuIo%2BrkSKxK5W4d5W4C5bX0q%2BzkR74FTWx%2FsWzwrWL9S%2B6%2BqtzwGbX3q74wn%2B4d5WXiN.gif" border="0"></td></tr></table>