[bpf] Symbol sizes and types in object file
authorYonghong Song <yhs@fb.com>
Wed, 19 Sep 2018 16:04:13 +0000 (16:04 +0000)
committerYonghong Song <yhs@fb.com>
Wed, 19 Sep 2018 16:04:13 +0000 (16:04 +0000)
commit5b476c5a9f6e250a4b4b2d18f6da839ca62dd458
tree17d31450e87841932a6e1cfacc1067739bea6a16
parent8b6c314be1924c474fecdddca199fc8e702e273a
[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
llvm/lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h