1 # RUN: llvm-mc -filetype=obj -triple=wasm32 %p/Inputs/start.s -o %t
3 # RUN: wasm-ld --build-id %t -o %t2
4 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DEFAULT %s
5 # RUN: wasm-ld --build-id=fast %t -o %t2
6 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DEFAULT %s
7 # RUN: wasm-ld --build-id %t -o %t2 --threads=1
8 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DEFAULT %s
10 # RUN: wasm-ld --build-id=sha1 %t -o %t2
11 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s
12 # RUN: wasm-ld --build-id=sha1 %t -o %t2 --threads=1
13 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s
15 # RUN: wasm-ld --build-id=tree %t -o %t2
16 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s
17 # RUN: wasm-ld --build-id=tree %t -o %t2 --threads=1
18 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=SHA1 %s
20 # RUN: wasm-ld --build-id=uuid %t -o %t2
21 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=UUID %s
23 # RUN: wasm-ld --build-id=0x12345678 %t -o %t2
24 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=HEX %s
26 # RUN: wasm-ld %t -o %t2
27 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s
29 # RUN: wasm-ld --build-id=sha1 --build-id=none %t -o %t2
30 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s
31 # RUN: wasm-ld --build-id --build-id=none %t -o %t2
32 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s
33 # RUN: wasm-ld --build-id=none --build-id %t -o %t2
34 # RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DEFAULT %s
36 .section .data.foo,"",@
45 # DEFAULT: Contents of section build_id:
46 # DEFAULT-NEXT: 0000 10299168 1e3c845a 3c8f80ae 2f16cc22 .).h.<.Z<.../.."
47 # DEFAULT-NEXT: 0010 2d
49 # SHA1: Contents of section build_id:
50 # SHA1-NEXT: 0000 145abdda 387a9bc4 e3aed3c3 3319cd37 .Z..8z......3..7
51 # SHA1-NEXT: 0010 0212237c e4 ..#|.
53 # UUID: Contents of section build_id:
56 # HEX: Contents of section build_id:
57 # HEX-NEXT: 0000 04123456 78 ..4Vx
60 # NONE-NOT: Contents of section build_id: