[llvm-commits] ARM ELF disassembly with integrated-as

Greg Fitzgerald gregf at codeaurora.org
Wed Oct 17 20:20:44 PDT 2012


> [LLVMdev] R_ARM_ABS32 disassembly with integrated-as 

Please review the attached patch.

Highlights:
* LLVM now emits an ARM ELF with the same mapping symbols as GCC
* Because of that, you can now objdump ARM ELF files and not see gibberish
code where jump tables are stored
* And having those symbols alleviates concerns Tim mentioned regarding
linking.

Lowlights:
* Had the choice of either dumping ARMELFStreamer into the MC layer, or
pulling MCELFStreamer into the public include directory (for MC).  I chose
the latter.  It seems quite a bit cleaner, but at the expense of maybe
exposing an object that might not be ready to move out of its anonymous
namespace.
* Needed to update a few somewhat-unrelated unit tests.  Mostly just
updating references in the symbol table to account for the 3 mapping symbols
at the start of each file (.text=$a, .data=$d, .bss=$d).  These are probably
worth the most scrutiny.

Thanks,
Greg

---
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
by The Linux Foundation

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ArmMappingSymbols.patch.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121017/ada32c35/attachment.txt>


More information about the llvm-commits mailing list