annotate lld/test/ELF/x86-property-relocatable.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # REQUIRES: x86
anatofuz
parents:
diff changeset
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
anatofuz
parents:
diff changeset
3 # RUN: ld.lld -r %t.o -o %t2.o
anatofuz
parents:
diff changeset
4 # RUN: llvm-readelf -n %t2.o | FileCheck -match-full-lines %s
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 ## Test that .note.gnu.property is passed through -r, and that we can handle
anatofuz
parents:
diff changeset
7 ## more than one FEATURE_AND in the same object file. This is logically the
anatofuz
parents:
diff changeset
8 ## same as if the features were combined in a single FEATURE_AND as the rule
anatofuz
parents:
diff changeset
9 ## states that the bit in the output pr_data field if it is set in all
anatofuz
parents:
diff changeset
10 .text
anatofuz
parents:
diff changeset
11 ret
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 .section ".note.gnu.property", "a"
anatofuz
parents:
diff changeset
14 .p2align 3
anatofuz
parents:
diff changeset
15 .long 4
anatofuz
parents:
diff changeset
16 .long 0x10
anatofuz
parents:
diff changeset
17 .long 0x5
anatofuz
parents:
diff changeset
18 .asciz "GNU"
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 .long 0xc0000002 // GNU_PROPERTY_X86_FEATURE_1_AND
anatofuz
parents:
diff changeset
21 .long 4
anatofuz
parents:
diff changeset
22 .long 1 // GNU_PROPERTY_X86_FEATURE_1_IBT
anatofuz
parents:
diff changeset
23 .long 0
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 .long 4
anatofuz
parents:
diff changeset
26 .long 0x10
anatofuz
parents:
diff changeset
27 .long 0x5
anatofuz
parents:
diff changeset
28 .asciz "GNU"
anatofuz
parents:
diff changeset
29 .long 0xc0000002 // GNU_PROPERTY_X86_FEATURE_1_AND
anatofuz
parents:
diff changeset
30 .long 4
anatofuz
parents:
diff changeset
31 .long 2 // GNU_PROPERTY_X86_FEATURE_1_SHSTK
anatofuz
parents:
diff changeset
32 .long 0
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 # CHECK: Owner Data size Description
anatofuz
parents:
diff changeset
35 # CHECK-NEXT: GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 (property note)
anatofuz
parents:
diff changeset
36 # CHECK-NEXT: Properties: x86 feature: IBT, SHSTK