Home | History | Annotate | Download | only in x86_64-Sections
      1 	# .text stays in .text
      2 	.text
      3 	movq %rax, %rax
      4 
      5 	# -ffunction-sections is undone.
      6 	.section .text.foo,"ax",@progbits
      7 	.globl foo
      8 foo:
      9 	ret
     10 
     11 	# .rodata is moved to .text.
     12 	.section .rodata
     13 	.long 42
     14 	.string "Hello world, esc\ape characters are \"fun\"\\"
     15 
     16 	# Compilers sometimes emit extra rodata sections.
     17 	.section .rodata.str1.1,"aMS",@progbits,1
     18 	.string "NIST P-256"
     19 	.text
     20 
     21 	# A number of sections are left alone.
     22 	.section	.init_array,"aw"
     23 	.align 8
     24 	.quad	foo
     25 	.section	.rodata
     26 	.align 16
     27 	.section	.debug_info,"",@progbits
     28 .Ldebug_info0:
     29 	.long	0x1b35e
     30 	.value	0x4
     31 	.long	.L1
     32 	.byte	0x8
     33 	.uleb128 0x1
     34 	.long	.L2
     35 	.byte	0x1
     36 	.long	.L3
     37