brintos

brintos / llvm-project-archived public Read only

0
0
Text · 948 B · 70db082 Raw
31 lines · plain
1# RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s -o %t.obj2# RUN: llvm-readobj --symbols -r %t.obj | FileCheck %s3 4# Previously .secrel32 and .secidx relocations against undefined symbols5# resulted in an error. That was a mistake. The linker is fully capable of6# resolving these relocations against symbols in other object files. Such7# relocations can be found in the MSVCRT debug info describing linker-provided8# symbols like __safe_se_handler_table and __guard_fids_table.9 10.data11foo:12        .secrel32 bar13        .secidx baz14 15 16# CHECK: Relocations [17# CHECK:   Section (2) .data {18# CHECK:     0x0 IMAGE_REL_I386_SECREL bar19# CHECK:     0x4 IMAGE_REL_I386_SECTION baz20# CHECK:   }21# CHECK: ]22 23# CHECK:   Symbol {24# CHECK:     Name: bar25# CHECK-NEXT:     Value: 026# CHECK-NEXT:     Section: IMAGE_SYM_UNDEFINED (0)27# CHECK:   Symbol {28# CHECK:     Name: baz29# CHECK-NEXT:     Value: 030# CHECK-NEXT:     Section: IMAGE_SYM_UNDEFINED (0)31