I am sending here as an RFC instead of LLVM's mailing list as I'm not sure
this is the intended behavior, and the "fix" may therefore not be needed.

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, that information is included in object files.

Signed-off-by: Paul Chaignon <[email protected]>
Reported-by: Yutaro Hayakawa <[email protected]>
---
Index: lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
===================================================================
--- lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h  (revision 341679)
+++ lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h  (working copy)
@@ -30,8 +30,8 @@
     WeakRefDirective = "\t.weak\t";
 
     UsesELFSectionDirectiveForBSS = true;
-    HasSingleParameterDotFile = false;
-    HasDotTypeDotSizeDirective = false;
+    HasSingleParameterDotFile = true;
+    HasDotTypeDotSizeDirective = true;
 
     SupportsDebugInformation = true;
     ExceptionsType = ExceptionHandling::DwarfCFI;

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#1478): https://lists.iovisor.org/g/iovisor-dev/message/1478
Mute This Topic: https://lists.iovisor.org/mt/25729284/21656
Group Owner: [email protected]
Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to