Files
clang-p2996/lld/test/pecoff/seh.test
Rui Ueyama 5522e81f12 [PECOFF] Sort SEH table entries according to its value.
It looks like the contents of the table need to be sorted according to its
value, so that the runtime can find the entry by binary search. I'm not 100%
sure if we really have to do that, but at least I can say it's safe to do
because the contents of .sxdata is just a list of exception handlers' RVAs.

llvm-svn: 202550
2014-02-28 22:17:53 +00:00

32 lines
1.0 KiB
Plaintext

# RUN: yaml2obj %p/Inputs/seh.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /force /nodefaultlib \
# RUN: -- %t.obj
# RUN: llvm-objdump -private-headers %t.exe | FileCheck %s
CHECK: Load configuration:
CHECK: Timestamp: 0
CHECK: Major Version: 0
CHECK: Minor Version: 0
CHECK: GlobalFlags Clear: 0
CHECK: GlobalFlags Set: 0
CHECK: Critical Section Default Timeout: 0
CHECK: Decommit Free Block Threshold: 0
CHECK: Decommit Total Free Threshold: 0
CHECK: Lock Prefix Table: 0
CHECK: Maximum Allocation Size: 0
CHECK: Virtual Memory Threshold: 0
CHECK: Process Affinity Mask: 0
CHECK: Process Heap Flags: 0
CHECK: CSD Version: 0
CHECK: Security Cookie: 0
CHECK: SEH Table: 4210688
CHECK: SEH Count: 2
CHECK: SEH Table: 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}}
# RUN: lld -flavor link /out:%t.exe /subsystem:console /force /nodefaultlib \
# RUN: /safeseh:no -- %t.obj
# RUN: llvm-objdump -private-headers %t.exe | FileCheck -check-prefix=NOSEH %s
NOSEH-NOT: SEH Table: