From: Yonghong Song Date: Wed, 19 Sep 2018 16:04:13 +0000 (+0000) Subject: [bpf] Symbol sizes and types in object file X-Git-Tag: llvmorg-8.0.0-rc1~8409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b476c5a9f6e250a4b4b2d18f6da839ca62dd458;p=platform%2Fupstream%2Fllvm.git [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 Reported-by: Yutaro Hayakawa llvm-svn: 342556 --- diff --git a/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h b/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h index 171f7f6..af3ad53 100644 --- a/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h +++ b/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h @@ -30,8 +30,8 @@ public: WeakRefDirective = "\t.weak\t"; UsesELFSectionDirectiveForBSS = true; - HasSingleParameterDotFile = false; - HasDotTypeDotSizeDirective = false; + HasSingleParameterDotFile = true; + HasDotTypeDotSizeDirective = true; SupportsDebugInformation = true; ExceptionsType = ExceptionHandling::DwarfCFI;