106 lines · plain
1// Test object file with extended symbol table can be linked.2 3// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t4// RUN: llvm-jitlink -noexec %t5 6.macro gen_sections4 x7 .section a\x8 .section b\x9 .section c\x10 .section d\x11.endm12 13.macro gen_sections8 x14 gen_sections4 a\x15 gen_sections4 b\x16.endm17 18.macro gen_sections16 x19 gen_sections8 a\x20 gen_sections8 b\x21.endm22 23.macro gen_sections32 x24 gen_sections16 a\x25 gen_sections16 b\x26.endm27 28.macro gen_sections64 x29 gen_sections32 a\x30 gen_sections32 b\x31.endm32 33.macro gen_sections128 x34 gen_sections64 a\x35 gen_sections64 b\x36.endm37 38.macro gen_sections256 x39 gen_sections128 a\x40 gen_sections128 b\x41.endm42 43.macro gen_sections512 x44 gen_sections256 a\x45 gen_sections256 b\x46.endm47 48.macro gen_sections1024 x49 gen_sections512 a\x50 gen_sections512 b\x51.endm52 53.macro gen_sections2048 x54 gen_sections1024 a\x55 gen_sections1024 b\x56.endm57 58.macro gen_sections4096 x59 gen_sections2048 a\x60 gen_sections2048 b\x61.endm62 63.macro gen_sections8192 x64 gen_sections4096 a\x65 gen_sections4096 b\x66.endm67 68.macro gen_sections16384 x69 gen_sections8192 a\x70 gen_sections8192 b\x71.endm72 73.macro gen_sections32768 x74 gen_sections16384 a\x75 gen_sections16384 b\x76.endm77 78 .section foo79 .section bar80 81gen_sections32768 a82gen_sections16384 b83gen_sections8192 c84gen_sections4096 d85gen_sections2048 e86gen_sections1024 f87gen_sections512 g88gen_sections128 h89gen_sections64 i90gen_sections32 j91gen_sections16 k92gen_sections8 l93gen_sections4 m94 95.section test,"ax"96.global a97a:98nop99.size a, .-a100 101.text102.global main103main:104nop105.size main, .-main106