arm: Define elf_backend_extern_protected_data to 0 [PR 18705]
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr27491-2.d
1 #as: --64
2 #ld: --gc-sections -melf_x86_64 -z start-stop-gc -shared
3 #objdump: --syms -dw
4
5 .*: +file format elf64-x86-64
6
7
8 SYMBOL TABLE:
9 #...
10 [a-f0-9]+ g xx [a-f0-9]+ \.protected __stop_xx
11 #...
12 [a-f0-9]+ g xx [a-f0-9]+ \.protected __start_xx
13 #...
14
15
16 Disassembly of section .text:
17
18 [a-f0-9]+ <foo>:
19 +[a-f0-9]+: 48 8d 05 ([0-9a-f]{2} ){4}[ \t]+lea +0x[a-f0-9]+\(%rip\),%rax[ \t]+# [a-f0-9]+ <__start_xx>
20 +[a-f0-9]+: 48 8d 05 ([0-9a-f]{2} ){4}[ \t]+lea +0x[a-f0-9]+\(%rip\),%rax[ \t]+# [a-f0-9]+ <__stop_xx>
21 +[a-f0-9]+: 48 8d 05 ([0-9a-f]{2} ){4}[ \t]+lea +0x[a-f0-9]+\(%rip\),%rax[ \t]+# [a-f0-9]+ <bar1>
22 +[a-f0-9]+: 48 8d 05 ([0-9a-f]{2} ){4}[ \t]+lea +0x[a-f0-9]+\(%rip\),%rax[ \t]+# [a-f0-9]+ <bar2>
23 #pass