2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld %t.o --build-id=md5 --shared -o %t.so
4 # RUN: llvm-readelf -S %t.so | FileCheck %s
6 # Check .note.gnu.build-id is placed before other potentially large sections
7 # (.dynsym .dynstr (and .rela.dyn in PIE)). This ensures the note information
8 # available in core files because various core dumpers ensure the first page is
11 # CHECK: [ 1] .note.gnu.build-id