<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim;"><p> </p><p style="padding: 0px 0px 0px 10pt; font-family: sans-serif; font-size: 10pt;"><span>-----Original Message-----</span><br><b>From:</b> "석진무"<styleseok0710@naver.com> <br><b>To:</b> <llvm-bugs@lists.llvm.org>; <br><b>Cc:</b> <br><b>Sent:</b> 2016-10-12 (수) 17:40:32<br><b>Subject:</b> Question about debug symbol<br> </p><!-- --><div style="font-family: Gulim; font-size: 10pt;"><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 currentColor; border-image: none; width: auto; text-align: left; color: rgb(36, 39, 41); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif; font-size: 13px; font-style: normal; font-weight: normal; word-spacing: 0px; -ms-word-wrap: normal; max-height: 600px; orphans: 2; widows: 2; background-color: rgb(239, 240, 241); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;"><code style="margin: 0px; padding: 0px; border: 0px currentColor; border-image: none; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif; font-size: 13px; white-space: inherit; background-color: rgb(239, 240, 241);">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>
</div></body></html>
<table style="display:none"><tr><td><img src="https://mail.naver.com/readReceipt/notify/?img=veeqp6wl%2BHKmKxbm1re0aqwSKrtdFqFoMqE9KqF4azuZa6JoKoC0M6koFo2wKxFvauIo%2BrkSKov5W4d5W4C5bX0q%2BzkR74FTWx%2FsWzwrWL9vpBpgWz0q%2BHK5WzwrWLlTb4b%3D.gif" border="0"></td></tr></table>