[llvm-dev] Question about debug symbol

석진무 via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 25 21:47:36 PDT 2016


 
-----Original Message-----
From: "석진무"<styleseok0710 at naver.com> 
To: <llvm-bugs at lists.llvm.org>; 
Cc: 
Sent: 2016-10-12 (수) 17:40:32
Subject: 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   : 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:
i386
freebsd11
 
 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161026/df59187e/attachment-0001.html>


More information about the llvm-dev mailing list