Files
clang-p2996/lld/test/pecoff/armnt-ImageBase.test
Saleem Abdulrasool 6fffd487ee PE/COFF: use dyn_cast for the check of the target
The target may be a synthetic symbol like __ImageBase.  cast_or_null will ensure
that the atom is a DefinedAtom, which is not guaranteed, which was the original
reason for the cast_or_null.  Switch this to dyn_cast, which should enable
building of executables for WoA.  Unfortunately, the issue of missing base
relocations still needs to be investigated.

llvm-svn: 226246
2015-01-16 04:14:33 +00:00

15 lines
431 B
Plaintext

# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-ImageBase.obj.yaml
# RUN: llvm-readobj -r %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /out:%t.exe %t.obj /subsystem:console
# RUN: llvm-readobj -r %t.exe | FileCheck %s -check-prefix AFTER
BEFORE: Relocations [
BEFORE: Section {{.*}} .text {
BEFORE: 0x4 IMAGE_REL_ARM_ADDR32 __ImageBase
BEFORE: }
BEFORE: ]
AFTER: Relocations [
AFTER-NEXT: ]