1# RUN: llvm-mc -filetype=obj -triple=wasm32 %p/Inputs/start.s -o %t 2 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 9 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 14 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 19 20# RUN: wasm-ld --build-id=uuid %t -o %t2 21# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=UUID %s 22 23# RUN: wasm-ld --build-id=0x12345678 %t -o %t2 24# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=HEX %s 25 26# RUN: wasm-ld %t -o %t2 27# RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=NONE %s 28 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 35 36.section .data.foo,"",@ 37 .globl foo 38 .hidden foo 39 .p2align 2 40foo: 41 .int32 1 42 .size foo, 4 43 44 45# DEFAULT: Contents of section build_id: 46# DEFAULT-NEXT: 0079 10299168 1e3c845a 3c8f80ae 2f16cc22 .).h.<.Z<.../.." 47# DEFAULT-NEXT: 0089 2d 48 49# SHA1: Contents of section build_id: 50# SHA1-NEXT: 0079 145abdda 387a9bc4 e3aed3c3 3319cd37 .Z..8z......3..7 51# SHA1-NEXT: 0089 0212237c e4 ..#|. 52 53# UUID: Contents of section build_id: 54# UUID-NEXT: 0079 10 55 56# HEX: Contents of section build_id: 57# HEX-NEXT: 0079 04123456 78 ..4Vx 58 59 60# NONE-NOT: Contents of section build_id: 61