[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / package-metadata.s
blob29df499d7e98d29d192842b7c050f1ac1e33ada0
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
5 # RUN: ld.lld %t.o -o %t --package-metadata='{}'
6 # RUN: llvm-readelf -n %t | FileCheck %s --check-prefixes=NOTE,FIRST
8 # RUN: ld.lld %t.o -o %t --package-metadata='{"abc":123}'
9 # RUN: llvm-readelf -n %t | FileCheck %s --check-prefixes=NOTE,SECOND
11 # NOTE: .note.package
12 # NOTE-NEXT: Owner
13 # NOTE-NEXT: FDO 0x{{.*}} Unknown note type: (0xcafe1a7e)
14 # FIRST-NEXT: description data: 7b 7d 00
15 # SECOND-NEXT: description data: 7b 22 61 62 63 22 3a 31 32 33 7d 00
17 .globl _start
18 _start:
19 ret