brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · d1aec42 Raw
100 lines · plain
1# REQUIRES: x862# RUN: split-file %s %t.dir && cd %t.dir3 4# RUN: llvm-mc -triple=x86_64-windows-cygnus -filetype=obj -o data-no-bss.obj data-no-bss.s5# RUN: lld-link -lldmingw -entry:main data-no-bss.obj -out:data-no-bss.exe6# RUN: llvm-objdump -s data-no-bss.exe | FileCheck --check-prefix=DATANOBSS %s7 8# RUN: llvm-mc -triple=x86_64-windows-cygnus -filetype=obj -o bss-no-data.obj bss-no-data.s9# RUN: lld-link -lldmingw -entry:main bss-no-data.obj -out:bss-no-data.exe10# RUN: llvm-objdump -s bss-no-data.exe | FileCheck --check-prefix=BSSNODATA %s11 12# RUN: llvm-mc -triple=x86_64-windows-cygnus -filetype=obj -o data-and-bss.obj data-and-bss.s13# RUN: lld-link -lldmingw -entry:main data-and-bss.obj -out:data-and-bss.exe14# RUN: llvm-objdump -s data-and-bss.exe | FileCheck --check-prefix=DATAANDBSS %s15 16#--- data-no-bss.s17.globl main18main:19  nop20 21.data22  .quad 123  .byte 224 25.section .data_cygwin_nocopy, "w"26  .align 427  .quad 328  .byte 429 30.section .test, "w"31  .quad __data_start__32  .quad __data_end__33  .quad __bss_start__34  .quad __bss_end__35 36#--- bss-no-data.s37.globl main38main:39  nop40 41.bss42  .zero 819243 44.section .test, "w"45  .quad __data_start__46  .quad __data_end__47  .quad __bss_start__48  .quad __bss_end__49 50#--- data-and-bss.s51.globl main52main:53  nop54 55.data56  .quad 157  .byte 258 59.section .data_cygwin_nocopy, "w"60  .align 461  .quad 362  .byte 463 64.bss65  .zero 819266 67.section .test, "w"68  .quad __data_start__69  .quad __data_end__70  .quad __bss_start__71  .quad __bss_end__72 73# DATANOBSS:      Contents of section .data:74# DATANOBSS-NEXT: 140003000 01000000 00000000 02000000 0300000075# DATANOBSS-NEXT: 140003010 00000000 0476# __data_start__ pointing at 0x140003000 and77# __data_end__   pointing at 0x140003009.78# DATANOBSS-NEXT: Contents of section .test:79# DATANOBSS-NEXT: 140004000 00300040 01000000 09300040 0100000080# DATANOBSS-NEXT: 140004010 18300040 01000000 18300040 0100000081 82# __bss_start__ pointing at 0x140003000 and83# __bss_end__   pointing at 0x140005000.84# BSSNODATA-NOT:  Contents of section .data:85# BSSNODATA:      Contents of section .test:86# BSSNODATA-NEXT: 140005000 00300040 01000000 00300040 0100000087# BSSNODATA-NEXT: 140005010 00300040 01000000 00500040 0100000088 89# DATAANDBSS:      Contents of section .data:90# DATAANDBSS-NEXT: 140003000 01000000 00000000 02000000 0300000091# DATAANDBSS-NEXT: 140003010 00000000 04000000 00000000 0000000092# __data_start__ pointing at 0x140003000 and93# __data_end__   pointing at 0x140003009.94# __bss_start__ pointing at 0x140003018 and95# __bss_end__   pointing at 0x140005018.96# DATAANDBSS:      1400031f0 00000000 00000000 00000000 0000000097# DATAANDBSS-NEXT: Contents of section .test:98# DATAANDBSS-NEXT: 140006000 00300040 01000000 09300040 0100000099# DATAANDBSS-NEXT: 140006010 18300040 01000000 18500040 01000000100