First cut at getting debugging support for ARM/MC/ELF/.o
authorJason W Kim <jason.w.kim.2009@gmail.com>
Tue, 10 May 2011 18:07:25 +0000 (18:07 +0000)
committerJason W Kim <jason.w.kim.2009@gmail.com>
Tue, 10 May 2011 18:07:25 +0000 (18:07 +0000)
DWARF stuff also gets fixed up by ELFARMAsmBackend::ApplyFixup(),
but the offset is not guaranteed to be mod 4 == 0 as in text/data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131137 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmBackend.cpp

index f0628192308f62c00dd1dc194f142a7e2d257982..d6a170a7065125d931fbcebd0120886af4b45172 100644 (file)
@@ -404,7 +404,6 @@ void ELFARMAsmBackend::ApplyFixup(const MCFixup &Fixup, char *Data,
   if (!Value) return;           // Doesn't change encoding.
 
   unsigned Offset = Fixup.getOffset();
-  assert(Offset % NumBytes == 0 && "Offset mod NumBytes is nonzero!");
 
   // For each byte of the fragment that the fixup touches, mask in the bits from
   // the fixup value. The Value has been "split up" into the appropriate