File: empty-dwarf-lines.s

package info (click to toggle)
llvm-2.9 2.9%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 69,236 kB
  • sloc: cpp: 439,289; ansic: 16,211; asm: 13,295; sh: 12,912; python: 4,459; ml: 4,274; perl: 2,093; makefile: 1,808; pascal: 1,481; exp: 427; objc: 334; xml: 283; ada: 235; lisp: 187; csh: 117; f90: 36
file content (25 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s

// This tests that when producing files for darwin9 or older we make sure
// that debug_line sections are of a minimum size to avoid the linker bug
// described in PR8715.

        .section        __DATA,__data
        .file   1 "test.c"
        .globl  _c                      ## @c
_c:
        .asciz   "hi\n"

// CHECK:      (('section_name', '__debug_line\x00\x00\x00\x00')
// CHECK-NEXT:  ('segment_name', '__DWARF\x00\x00\x00\x00\x00\x00\x00\x00\x00')
// CHECK-NEXT:  ('address', 4)
// CHECK-NEXT:  ('size', 44)
// CHECK-NEXT:  ('offset', 452)
// CHECK-NEXT:  ('alignment', 0)
// CHECK-NEXT:  ('reloc_offset', 0)
// CHECK-NEXT:  ('num_reloc', 0)
// CHECK-NEXT:  ('flags', 0x2000000)
// CHECK-NEXT:  ('reserved1', 0)
// CHECK-NEXT:  ('reserved2', 0)
// CHECK-NEXT:  ('reserved3', 0)
// CHECK-NEXT: ),