From 5b476c5a9f6e250a4b4b2d18f6da839ca62dd458 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Wed, 19 Sep 2018 16:04:13 +0000 Subject: [PATCH] [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 --- llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4