• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## phdrs.elf-x86-64 was generated using lld (3.9).
2## llvm-mc -filetype=obj -triple=x86_64-unknown-linux test.s -o test.o
3## lld test.o -o phdrs.elf-x86-64
4##
5## test.s:
6## .global _start
7## _start:
8##
9## .global d
10## .section .foo,"awT",@progbits
11## d:
12## .long 2
13##
14RUN: llvm-objdump -p %p/Inputs/phdrs.elf-x86-64 \
15RUN:     | FileCheck %s
16
17CHECK: RELRO off    0x0000000000001000 vaddr 0x0000000000201000 paddr 0x0000000000201000 align 2**0
18CHECK-NEXT:      filesz 0x0000000000000004 memsz 0x0000000000001000 flags r--
19
20## phdr-note.elf-x86-64 was generated using lld (3.9).
21## llvm-mc -filetype=obj -triple=x86_64-pc-linux test.s -o test.o
22## lld test.o -o phdr-note.elf-x86-64 -shared
23##
24## test.s:
25##       .section        .note.test,"a",@note
26##       .quad 42
27
28RUN: llvm-objdump -p %p/Inputs/phdr-note.elf-x86-64 \
29RUN:     | FileCheck %s --check-prefix=NOTE
30
31NOTE: NOTE off    0x0000000000000200 vaddr 0x0000000000000200 paddr 0x0000000000000200 align 2**0
32NOTE-NEXT:       filesz 0x0000000000000008 memsz 0x0000000000000008 flags r--
33