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 :
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 
<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   : 363this 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:

llvm-bugs mailing list

Reply via email to