brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · 581f600 Raw
101 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4 5# RUN: ld.lld --build-id %t -o %t26# RUN: llvm-readobj -S %t2 | FileCheck -check-prefix=ALIGN %s7 8# RUN: ld.lld --build-id %t -o %t29# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s10# RUN: ld.lld --build-id %t -o %t2 --threads=111# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s12 13# RUN: ld.lld --build-id=fast %t -o %t214# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=FAST %s15 16# RUN: ld.lld --build-id=md5 %t -o %t217# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=MD5 %s18# RUN: ld.lld --build-id=md5 %t -o %t2 --threads=119# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=MD5 %s20 21# RUN: ld.lld --build-id=sha1 %t -o %t222# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s23# RUN: ld.lld --build-id=sha1 %t -o %t2 --threads=124# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s25 26# RUN: ld.lld --build-id=tree %t -o %t227# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s28# RUN: ld.lld --build-id=tree %t -o %t2 --threads=129# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s30 31# RUN: ld.lld --build-id=uuid %t -o %t232# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=UUID %s33 34# RUN: ld.lld --build-id=0x12345678 %t -o %t235# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=HEX %s36 37# RUN: ld.lld %t -o %t238# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s39 40# RUN: ld.lld --build-id=md5 --build-id=none %t -o %t241# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s42# RUN: ld.lld --build-id --build-id=none %t -o %t243# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s44# RUN: ld.lld --build-id=none --build-id %t -o %t245# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s46 47.globl _start48_start:49  nop50 51.section .note.test, "a", @note52   .quad 4253 54# ALIGN:      Name: .note.gnu.build-id55# ALIGN-NEXT: Type: SHT_NOTE56# ALIGN-NEXT: Flags [57# ALIGN-NEXT:   SHF_ALLOC58# ALIGN-NEXT: ]59# ALIGN-NEXT: Address:60# ALIGN-NEXT: Offset: [[_:0x[0-9A-Z]*(0|4|8|C)$]]61# ALIGN-NEXT: Size:62# ALIGN-NEXT: Link:63# ALIGN-NEXT: Info:64# ALIGN-NEXT: AddressAlignment: 465 66# FAST:      Contents of section .note.test:67# FAST:      Contents of section .note.gnu.build-id:68# FAST-NEXT: 04000000 08000000 03000000 474e5500  ............GNU.69# FAST-NEXT: 630bc2f5 a258476370 71# MD5:      Contents of section .note.gnu.build-id:72# MD5-NEXT: 04000000 10000000 03000000 474e5500  ............GNU.73# MD5-NEXT: dbf0bc13 b3ff11e9 fde6e17c 0304983c74 75# SHA1:      Contents of section .note.gnu.build-id:76# SHA1-NEXT: 04000000 14000000 03000000 474e5500  ............GNU.77# SHA1-NEXT: 1215775f d3b60050 70afd970 e8a1097278 79# UUID:      Contents of section .note.gnu.build-id:80# UUID-NEXT: 04000000 10000000 03000000 474e5500  ............GNU.81 82# HEX:      Contents of section .note.gnu.build-id:83# HEX-NEXT: 04000000 04000000 03000000 474e5500  ............GNU.84# HEX-NEXT: 1234567885 86# NONE-NOT: Contents of section .note.gnu.build-id:87 88# RUN: ld.lld --build-id=sha1 -z separate-loadable-segments %t -o %t289# RUN: llvm-readelf -x .note.gnu.build-id %t2 | FileCheck --check-prefix=SEPARATE %s90 91# SEPARATE:      Hex dump of section '.note.gnu.build-id':92# SEPARATE-NEXT: 0x00200198 04000000 14000000 03000000 474e550093# SEPARATE-NEXT: 0x002001a8 5cd067a4 2631c0fd 42029037 4b8e093894 95# RUN: ld.lld --build-id=sha1 --no-rosegment %t -o %t296# RUN: llvm-readelf -x .note.gnu.build-id %t2 | FileCheck --check-prefix=NORO %s97 98# NORO:      Hex dump of section '.note.gnu.build-id':99# NORO-NEXT: 0x00200160 04000000 14000000 03000000 474e5500100# NORO-NEXT: 0x00200170 a328cc99 45bfc3fc a9fc8615 37102f9d101