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 -t %t | FileCheck --check-prefix=SYMBOLS %s
5 // Test that we don't create a .symtab_shndx since we are one section short of
6 // SHN_LORESERVE (0xFF00).
8 // SECTIONS-NOT: Name: .symtab_shndx
10 // Check the last referenced section.
12 // SYMBOLS: Name: dm (0)
13 // SYMBOLS-NEXT: Value: 0x0
14 // SYMBOLS-NEXT: Size: 0
15 // SYMBOLS-NEXT: Binding: Local (0x0)
16 // SYMBOLS-NEXT: Type: Section (0x3)
17 // SYMBOLS-NEXT: Other: 0
18 // SYMBOLS-NEXT: Section: dm (0xFEFF)
22 .macro gen_sections4 x
29 .macro gen_sections8 x
34 .macro gen_sections16 x
39 .macro gen_sections32 x
44 .macro gen_sections64 x
49 .macro gen_sections128 x
54 .macro gen_sections256 x
59 .macro gen_sections512 x
64 .macro gen_sections1024 x
69 .macro gen_sections2048 x
74 .macro gen_sections4096 x
79 .macro gen_sections8192 x
84 .macro gen_sections16384 x
89 .macro gen_sections32768 x