brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5b2eeea Raw
38 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo 'SECTIONS { .rodata : {*(.rodata.*)} .text : {*(.text.*)} }' > %t.script4 5# RUN: echo "_bar" > %t.ord6# RUN: echo "_foo" >> %t.ord7# RUN: ld.lld --symbol-ordering-file %t.ord -o %t --script %t.script %t.o8# RUN: llvm-objdump -s %t | FileCheck %s9 10# CHECK:      Contents of section .rodata:11# CHECK-NEXT: 02000000 00000000 01000000 0000000012# CHECK:      Contents of section .text:13# CHECK-NEXT: 02000000 00000000 01000000 0000000014 15# RUN: echo "_foo" > %t.ord16# RUN: echo "_bar" >> %t.ord17# RUN: ld.lld --symbol-ordering-file %t.ord -o %t --script %t.script %t.o18# RUN: llvm-objdump -s %t | FileCheck %s --check-prefix=INV19 20# INV:      Contents of section .rodata:21# INV-NEXT: 01000000 00000000 02000000 0000000022# INV:      Contents of section .text:23# INV-NEXT: 01000000 00000000 02000000 0000000024 25.section .text.foo,"a",@progbits26_foo:27.quad 128 29.section .text.bar,"a",@progbits30_bar:31.quad 232 33.section .rodata.foo,"ao",@progbits,.text.foo34.quad 135 36.section .rodata.bar,"ao",@progbits,.text.bar37.quad 238