1 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
%t
2 // RUN
: llvm-readobj
-S
%t | FileCheck
--check-prefix
=SECTIONS
%s
3 // RUN
: llvm-readobj
--symbols
%t | FileCheck
--check-prefix
=SYMBOLS
%s
5 // Test that we create
a .symtab_shndx if a symbol points to a section
6 // numbered SHN_LORESERVE
(0xFF00) or higher.
8 // SECTIONS
: Name
: .symtab_shndx
10 // Test that we don
't create a symbol for the symtab_shndx section.
11 // SYMBOLS-NOT: symtab_shndx
14 // Test that both a and b show up in the correct section.
16 // SYMBOLS-NEXT: Value: 0x0
17 // SYMBOLS-NEXT: Size: 0
18 // SYMBOLS-NEXT: Binding: Local (0x0)
19 // SYMBOLS-NEXT: Type: None (0x0)
20 // SYMBOLS-NEXT: Other: 0
21 // SYMBOLS-NEXT: Section: dm (0xFF00)
23 // SYMBOLS-NEXT: Symbol {
24 // SYMBOLS-NEXT: Name: b
25 // SYMBOLS-NEXT: Value: 0x1
26 // SYMBOLS-NEXT: Size: 0
27 // SYMBOLS-NEXT: Binding: Local (0x0)
28 // SYMBOLS-NEXT: Type: None (0x0)
29 // SYMBOLS-NEXT: Other: 0
30 // SYMBOLS-NEXT: Section: dm (0xFF00)
34 // Test that this file has one section too many.
35 // SYMBOLS: Name: dm (0)
36 // SYMBOLS: Value: 0x0
38 // SYMBOLS: Binding: Local (0x0)
39 // SYMBOLS: Type: Section (0x3)
41 // SYMBOLS: Section: dm (0xFF00)
45 .macro gen_sections4 x
52 .macro gen_sections8 x
57 .macro gen_sections16 x
62 .macro gen_sections32 x
67 .macro gen_sections64 x
72 .macro gen_sections128 x
77 .macro gen_sections256 x
82 .macro gen_sections512 x
87 .macro gen_sections1024 x
92 .macro gen_sections2048 x
97 .macro gen_sections4096 x
102 .macro gen_sections8192 x
107 .macro gen_sections16384 x
112 .macro gen_sections32768 x
113 gen_sections16384 a\x
114 gen_sections16384 b\x