Rafael Espindola | 0453dd9 | 2010-09-27 21:40:27 +0000 | [diff] [blame] | 1 | // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s |
| 2 | |
| 3 | // Test that the .text directive doesn't cause alignment. |
| 4 | |
| 5 | .zero 1 |
| 6 | .text |
| 7 | .zero 1 |
| 8 | |
Jason W Kim | f7d5278 | 2010-10-19 17:39:10 +0000 | [diff] [blame] | 9 | // CHECK: (('sh_name', 0x00000001) # '.text' |
| 10 | // CHECK-NEXT: ('sh_type', 0x00000001) |
Rafael Espindola | 5c4e52e | 2011-08-04 17:00:11 +0000 | [diff] [blame] | 11 | // CHECK-NEXT: ('sh_flags', 0x0000000000000006) |
| 12 | // CHECK-NEXT: ('sh_addr', 0x0000000000000000) |
| 13 | // CHECK-NEXT: ('sh_offset', 0x0000000000000040) |
| 14 | // CHECK-NEXT: ('sh_size', 0x0000000000000002) |
Jason W Kim | f7d5278 | 2010-10-19 17:39:10 +0000 | [diff] [blame] | 15 | // CHECK-NEXT: ('sh_link', 0x00000000) |
| 16 | // CHECK-NEXT: ('sh_info', 0x00000000) |
Rafael Espindola | 5c4e52e | 2011-08-04 17:00:11 +0000 | [diff] [blame] | 17 | // CHECK-NEXT: ('sh_addralign', 0x0000000000000004) |
| 18 | // CHECK-NEXT: ('sh_entsize', 0x0000000000000000) |
Rafael Espindola | 0453dd9 | 2010-09-27 21:40:27 +0000 | [diff] [blame] | 19 | // CHECK-NEXT: ), |