diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-12-14 18:46:57 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-12-14 18:46:57 +0000 |
commit | 475002078848d102b6577fe7283464c039b38af6 (patch) | |
tree | 91badba54354d556dee83f21897d00ab10db48af /lib/MC/MCMachOStreamer.cpp | |
parent | d84de8cf62991597c15e948ecb121ad0233ba4ec (diff) |
ARM Fixups relative to thumb functions need to have the low bit of the value
set for interworking to work properly. rdar://8755956
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCMachOStreamer.cpp')
-rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index df1e7d8e2b..0e21f4d00c 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -142,6 +142,10 @@ void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { void MCMachOStreamer::EmitThumbFunc(MCSymbol *Func) { // FIXME: Flag the function ISA as thumb with DW_AT_APPLE_isa. + + // Remember that the function is a thumb function. Fixup and relocation + // values will need adjusted. + getAssembler().setIsThumbFunc(Func); } void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) { |