[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / note-first-page.s
bloba259344a1e5bfb02f7ddf246537c2d85456bf419
1 # REQUIRES: x86
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
9 # available.
11 # CHECK: [ 1] .note.gnu.build-id
12 # CHECK: [ 2] .dynsym