Displaying 2 results from an estimated 2 matches for "hasdataincodesupport".
2012 Oct 17
0
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
...// FIXME: Instead, emit the correct mapping symbol at .text
+  EmitMappingSymbol(/*IsData*/false);
+}
+
+void MCELFStreamer::EmitMappingSymbol(bool IsData) {
+  // FIXME: The following is specific to the ARM.  This should be moved
+  //        to ARMAsmBackend.
+
+  if (!getAssembler().getBackend().hasDataInCodeSupport())
+    return;
+
+  // Create a temporary label to mark the start of the data region.
+  MCSymbol *Start = getContext().CreateTempSymbol();
+  EmitLabel(Start);
+
+  // FIXME: We want to generate symbols with the same name, but
+  //        CreateSymbol() is not a public function.  So instead
+  /...
2012 Oct 16
2
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Attached is an example of how to reproduce the issue.  It uses a C
file that happens to has a bunch of switch statements which are
encoded as jump tables, giving us data-in-code.  Usage:
To build object files with clang via the -integrated-as versus via GCC:
$ export NDK_DIR=<my_ndk_dir>
$ export LLVM_DIR=<my_llvm_bin_dir>
$ make
To test that the generated objects contain the same