23 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o3# RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o -r4# RUN: ld.lld --build-id=0xdeadbeef -o %t.exe %t2.o5# RUN: llvm-objdump -s %t.exe | FileCheck %s6 7## The default --build-id=none removes .note.gnu.build-id input sections.8# RUN: ld.lld %t2.o -o %t.none9# RUN: llvm-readelf -S %t.none | FileCheck %s --check-prefix=NO10# RUN: ld.lld --build-id=none %t2.o -o %t.none211# RUN: cmp %t.none %t.none212 13# CHECK: Contents of section .note.gnu.build-id:14# CHECK-NOT: cafebabe15# CHECK: deadbeef16 17# NO: Section Headers:18# NO-NOT: .note.gnu.build-id19 20.global _start21_start:22 ret23