File: note-core.test

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (62 lines) | stat: -rw-r--r-- 2,311 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## Test that note values are interpreted correctly for core files.

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU
# RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM

--- !ELF
FileHeader:
  Class:         ELFCLASS64
  Data:          ELFDATA2LSB
  Type:          ET_CORE
  Machine:       EM_X86_64
Sections:
  - Name:        .note.foo
    Type:        SHT_NOTE
    # Note: format is 0500000000000000<NT_FOO value>434F524500000000 repeated
    Content:     050000000000000001000000434F524500000000050000000000000002000000434F524500000000050000000000000003000000434F524500000000050000000000000004000000434F524500000000050000000000000006000000434F524500000000
ProgramHeaders:
  - Type:        PT_NOTE
    Sections:
      - Section: .note.foo

# GNU:      Displaying notes found
# GNU-NEXT:   Owner                 Data size       Description
# GNU-NEXT:   CORE                  0x00000000      NT_PRSTATUS (prstatus structure)
# GNU-NEXT:   CORE                  0x00000000      NT_FPREGSET (floating point registers)
# GNU-NEXT:   CORE                  0x00000000      NT_PRPSINFO (prpsinfo structure)
# GNU-NEXT:   CORE                  0x00000000      NT_TASKSTRUCT (task structure)
# GNU-NEXT:   CORE                  0x00000000      NT_AUXV (auxiliary vector)

# LLVM:      Notes [
# LLVM-NEXT:   NoteSection {
# LLVM-NEXT:     Name: <?>
# LLVM-NEXT:     Offset:
# LLVM-NEXT:     Size:
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_PRSTATUS (prstatus structure)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_FPREGSET (floating point registers)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_PRPSINFO (prpsinfo structure)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_TASKSTRUCT (task structure)
# LLVM-NEXT:     }
# LLVM-NEXT:     Note {
# LLVM-NEXT:       Owner: CORE
# LLVM-NEXT:       Data size: 0x0
# LLVM-NEXT:       Type: NT_AUXV (auxiliary vector)
# LLVM-NEXT:     }
# LLVM-NEXT:   }
# LLVM-NEXT: ]