]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-x86-64/protected-func-2c.c
elf: Add GNU_PROPERTY_1_NEEDED check
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / protected-func-2c.c
1 #include "protected-func-1.h"
2
3 protected_func_type protected_func_1a_ptr = protected_func_1a;
4
5 __attribute__ ((visibility("protected")))
6 int
7 protected_func_1a (void)
8 {
9 return 1;
10 }
11
12 __attribute__ ((visibility("protected")))
13 int
14 protected_func_1b (void)
15 {
16 return 2;
17 }
18
19 protected_func_type
20 protected_func_1a_p (void)
21 {
22 return protected_func_1a;
23 }
24
25 protected_func_type
26 protected_func_1b_p (void)
27 {
28 return protected_func_1b;
29 }