[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / icf-symbol-type.s
blob904cb7ce230884993975c78f647bf16226172b0f
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t --icf=all -shared
5 # RUN: llvm-readelf --sections --dyn-symbols %t | FileCheck %s
7 # We used to mark bar as absolute.
9 # CHECK: [ 5] .text
10 # CHECK: [[ADDR:[0-9a-f]+]] 0 NOTYPE GLOBAL DEFAULT 5 foo
11 # CHECK: [[ADDR]] 0 NOTYPE GLOBAL DEFAULT 5 bar
13 # The nop makes the test more interesting by making the offset of
14 # text.f non zero.
16 nop
18 .section .text.f,"ax",@progbits
19 .globl foo
20 foo:
21 retq
23 .section .text.g,"ax",@progbits
24 .globl bar
25 bar:
26 retq