summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-09-19 16:04:13 +0000
committerYonghong Song <yhs@fb.com>2018-09-19 16:04:13 +0000
commit5b476c5a9f6e250a4b4b2d18f6da839ca62dd458 (patch)
tree17d31450e87841932a6e1cfacc1067739bea6a16
parent8b6c314be1924c474fecdddca199fc8e702e273a (diff)
downloadbcm5719-llvm-5b476c5a9f6e250a4b4b2d18f6da839ca62dd458.tar.gz
bcm5719-llvm-5b476c5a9f6e250a4b4b2d18f6da839ca62dd458.zip
[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@orange.com> Reported-by: Yutaro Hayakawa <yhayakawa3720@gmail.com> llvm-svn: 342556
-rw-r--r--llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h b/llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
index 171f7f607ff..af3ad531525 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;
OpenPOWER on IntegriCloud