[llvm] r342556 - [bpf] Symbol sizes and types in object file
    Yonghong Song via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Sep 19 09:04:13 PDT 2018
    
    
  
Author: yhs
Date: Wed Sep 19 09:04:13 2018
New Revision: 342556
URL: http://llvm.org/viewvc/llvm-project?rev=342556&view=rev
Log:
[bpf] Symbol sizes and types in object file
Clang-compiled object files currently don't include the symbol sizes and
types.  Some tools however need that information.  For example, ctfconvert
uses that information to generate FreeBSD's CTF representation from ELF
files.
With this patch, symbol sizes and types are included in object files.
Signed-off-by: Paul Chaignon <paul.chaignon at orange.com>
Reported-by: Yutaro Hayakawa <yhayakawa3720 at gmail.com>
Modified:
    llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
Modified: llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h?rev=342556&r1=342555&r2=342556&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h (original)
+++ llvm/trunk/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h Wed Sep 19 09:04:13 2018
@@ -30,8 +30,8 @@ public:
     WeakRefDirective = "\t.weak\t";
 
     UsesELFSectionDirectiveForBSS = true;
-    HasSingleParameterDotFile = false;
-    HasDotTypeDotSizeDirective = false;
+    HasSingleParameterDotFile = true;
+    HasDotTypeDotSizeDirective = true;
 
     SupportsDebugInformation = true;
     ExceptionsType = ExceptionHandling::DwarfCFI;
    
    
More information about the llvm-commits
mailing list