brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · dd5e0a1 Raw
34 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t.script4 5# RUN: ld.lld %t.o --script %t.script -o %t.out6# RUN: llvm-objdump -s %t.out| FileCheck %s --check-prefix=BEFORE7# BEFORE:      Contents of section .foo:8# BEFORE-NEXT: 11229 10# RUN: echo "_foo2" > %t.ord11# RUN: echo "_foo1" >> %t.ord12# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t.script -o %t2.out13# RUN: llvm-objdump -s %t2.out| FileCheck %s --check-prefix=AFTER14# AFTER:      Contents of section .foo:15# AFTER-NEXT: 221116 17# RUN: echo "SECTIONS { .text : { *(.text) } }" > %t2.script18# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t2.script -o %t3.out19# RUN: llvm-objdump -s %t3.out| FileCheck %s --check-prefix=AFTER20 21# RUN: echo "SECTIONS { .foo : { BYTE(0x33); *(.foo); BYTE(0x44) } }" > %t3.script22# RUN: ld.lld --symbol-ordering-file %t.ord %t.o --script %t3.script -o %t4.out23# RUN: llvm-objdump -s %t4.out| FileCheck %s --check-prefix=COMMANDS24# COMMANDS: Contents of section .foo:25# COMMANDS-NEXT:  3322114426 27.section .foo,"ax",@progbits,unique,128_foo1:29 .byte 0x1130 31.section .foo,"ax",@progbits,unique,232_foo2:33 .byte 0x2234