brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 0895e1a Raw
29 lines · plain
1# REQUIRES: x862#3# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-head.s -filetype=obj -o %t-dabcdh.o4# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-func.s -filetype=obj -o %t-dabcds00000.o5# RUN: llvm-mc -triple=x86_64-windows-gnu %p/Inputs/gnu-implib-tail.s -filetype=obj -o %t-dabcdt.o6# RUN: rm -f %t-implib.a7# RUN: llvm-ar rcs %t-implib.a %t-dabcdh.o %t-dabcds00000.o %t-dabcdt.o8# RUN: llvm-mc -triple=x86_64-windows-gnu %s -filetype=obj -o %t.obj9# RUN: lld-link -out:%t.exe -entry:main -subsystem:console \10# RUN:   %t.obj %t-implib.a11# RUN: llvm-objdump -s %t.exe | FileCheck --check-prefix=DATA %s12 13        .text14        .global main15main:16        call func17        ret18 19# Check that the linker inserted the null terminating import descriptor,20# even if there were no normal import libraries, only gnu ones.21 22# DATA: Contents of section .rdata:23# First import descriptor24# DATA:  140002000 28200000 00000000 00000000 5320000025# Last word from first import descriptor, null terminator descriptor26# DATA:  140002010 38200000 00000000 00000000 0000000027# Null terminator descriptor and import lookup table.28# DATA:  140002020 00000000 00000000 48200000 0000000029