llvm.org GIT mirror llvm / 472f1cb
[RuntimeDyld] Revert r279182 and 279201 -- they broke some ARM bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279275 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 3 years ago
11 changed file(s) with 10 addition(s) and 26 deletion(s). Raw diff Collapse all Expand all
478478 *TargetPtr &= ~0x000F0FFF;
479479 *TargetPtr |= Value & 0xFFF;
480480 *TargetPtr |= ((Value >> 12) & 0xF) << 16;
481 break;
482 case ELF::R_ARM_REL32:
483 *TargetPtr += Value - FinalAddress;
484481 break;
485482 // Write 24 bit relative value to the branch instruction.
486483 case ELF::R_ARM_PC24: // Fall through.
13671364 RelType, 0);
13681365 Section.advanceStubOffset(getMaxStubSize());
13691366 }
1370 } else if (RelType == ELF::R_ARM_GOT_PREL) {
1371 uint32_t GOTOffset = allocateGOTEntries(SectionID, 1);
1372
1373 RelocationEntry GOTRE(SectionID, Offset, ELF::R_ARM_REL32, GOTOffset);
1374 addRelocationForSection(GOTRE, GOTSectionID);
1375
1376 // Fill in the value of the symbol we're targeting into the GOT
1377 RelocationEntry RE = computeGOTOffsetRE(SectionID, GOTOffset,
1378 Value.Offset, ELF::R_ARM_ABS32);
1379 if (Value.SymbolName)
1380 addRelocationForSymbol(RE, Value.SymbolName);
1381 else
1382 addRelocationForSection(RE, Value.SectionID);
13831367 } else {
13841368 uint32_t *Placeholder =
13851369 reinterpret_cast(computePlaceholderAddress(SectionID, Offset));
0 ; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
11 ; RUN: -relocation-model=pic -code-model=small %s > /dev/null
2 ; XFAIL: mips-, mipsel-, aarch64, i686, i386, mingw32, win32
2 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, mingw32, win32
33 ; UNSUPPORTED: powerpc64-unknown-linux-gnu
44 ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
55
0 ; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
11 ; RUN: -O0 -relocation-model=pic -code-model=small %s
2 ; XFAIL: mips-, mipsel-, aarch64, i686, i386, mingw32, win32
2 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, mingw32, win32
33 ; UNSUPPORTED: powerpc64-unknown-linux-gnu
44 ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
55
0 ; RUN: %lli -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
1 ; XFAIL: mips-, mipsel-, i686, i386, aarch64
1 ; XFAIL: mips-, mipsel-, i686, i386, aarch64, arm
22
33 define i32 @main() nounwind {
44 entry:
0 ; RUN: %lli -relocation-model=pic -code-model=small %s > /dev/null
1 ; XFAIL: mips-, mipsel-, aarch64, i686, i386
1 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
22
33 @count = global i32 1, align 4
44
0 ; RUN: %lli -O0 -relocation-model=pic -code-model=small %s
1 ; XFAIL: mips-, mipsel-, aarch64, i686, i386
1 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
22
33 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
44 @ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4
0 ; RUN: %lli -jit-kind=orc-mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
11 ; RUN: -relocation-model=pic -code-model=small %s > /dev/null
2 ; XFAIL: mips-, mipsel-, aarch64, i686, i386, mingw32, win32
2 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, mingw32, win32
33 ; UNSUPPORTED: powerpc64-unknown-linux-gnu
44 ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
55
0 ; RUN: %lli -jit-kind=orc-mcjit -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
11 ; RUN: -O0 -relocation-model=pic -code-model=small %s
2 ; XFAIL: mips-, mipsel-, aarch64, i686, i386, mingw32, win32
2 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, mingw32, win32
33 ; UNSUPPORTED: powerpc64-unknown-linux-gnu
44 ; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
55
0 ; RUN: %lli -jit-kind=orc-mcjit -disable-lazy-compilation=false -relocation-model=pic -code-model=small %s
1 ; XFAIL: mips-, mipsel-, i686, i386, aarch64
1 ; XFAIL: mips-, mipsel-, i686, i386, aarch64, arm
22
33 define i32 @main() nounwind {
44 entry:
0 ; RUN: %lli -jit-kind=orc-mcjit -relocation-model=pic -code-model=small %s > /dev/null
1 ; XFAIL: mips-, mipsel-, aarch64, i686, i386
1 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
22
33 @count = global i32 1, align 4
44
0 ; RUN: %lli -jit-kind=orc-mcjit -O0 -relocation-model=pic -code-model=small %s
1 ; XFAIL: mips-, mipsel-, aarch64, i686, i386
1 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
22
33 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
44 @ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4