Reapply 222538 and update tests to explicitly request small code model
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 25 Nov 2014 13:37:55 +0000 (13:37 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 25 Nov 2014 13:37:55 +0000 (13:37 +0000)
commit21bcdeb1d65b4be0d716693f3dcabd2e8a7c6386
treecb39e64569ed7229befe108663d7b6c3a4c273ff
parente97049e7f26fe4b99d9b5e4bd3e765caaa656b90
Reapply 222538 and update tests to explicitly request small code model
and PIC:

Allow FDE references outside the +/-2GB range supported by PC relative
offsets for code models other than small/medium. For JIT application,
memory layout is less controlled and can result in truncations
otherwise.

Patch from Akos Kiss.

Differential Revision: http://reviews.llvm.org/D6079

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222760 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
lib/MC/MCObjectFileInfo.cpp
test/MC/ELF/cfi-adjust-cfa-offset.s
test/MC/ELF/cfi-advance-loc2.s
test/MC/ELF/cfi-def-cfa-offset.s
test/MC/ELF/cfi-def-cfa-register.s
test/MC/ELF/cfi-def-cfa.s
test/MC/ELF/cfi-escape.s
test/MC/ELF/cfi-offset.s
test/MC/ELF/cfi-register.s
test/MC/ELF/cfi-rel-offset.s
test/MC/ELF/cfi-rel-offset2.s
test/MC/ELF/cfi-remember.s
test/MC/ELF/cfi-restore.s
test/MC/ELF/cfi-same-value.s
test/MC/ELF/cfi-signal-frame.s
test/MC/ELF/cfi-undefined.s
test/MC/ELF/cfi-window-save.s
test/MC/ELF/cfi-zero-addr-delta.s
test/MC/ELF/cfi.s
test/MC/ELF/pr19430.s
test/MC/X86/fde-reloc.s