[PATCH] Avoid short relocation in x86_64 large code model

Joerg Sonnenberger joerg at NetBSD.org
Tue Nov 11 03:08:32 PST 2014


================
Comment at: lib/MC/MCObjectFileInfo.cpp:277
@@ +276,3 @@
+  case Triple::x86_64:
+    FDECFIEncoding = dwarf::DW_EH_PE_pcrel |
+        (CMModel != CodeModel::Large
----------------
I'd prefer to do a positive check for Small and Medium. JIT for example likely wants to get sdata8 too.

http://reviews.llvm.org/D6052






More information about the llvm-commits mailing list