[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
This commit is contained in:
Yonghong Song 2018-09-19 16:04:13 +00:00
parent 8b6c314be1
commit 5b476c5a9f
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ public:
WeakRefDirective = "\t.weak\t";
UsesELFSectionDirectiveForBSS = true;
HasSingleParameterDotFile = false;
HasDotTypeDotSizeDirective = false;
HasSingleParameterDotFile = true;
HasDotTypeDotSizeDirective = true;
SupportsDebugInformation = true;
ExceptionsType = ExceptionHandling::DwarfCFI;