mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 12:45:47 +00:00
[llvm-objdump] Dump PT_GNU_RELRO as part of -p.
PR: 31641 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91010967e3
commit
d871b20cb5
BIN
test/Object/Inputs/phdrs.elf-x86-64
Executable file
BIN
test/Object/Inputs/phdrs.elf-x86-64
Executable file
Binary file not shown.
18
test/tools/llvm-objdump/X86/phdrs.test
Normal file
18
test/tools/llvm-objdump/X86/phdrs.test
Normal file
@ -0,0 +1,18 @@
|
||||
## phdrs.elf-x86-64 was generated using lld (3.9).
|
||||
## llvm-mc -filetype=obj -triple=x86_64-unknown-linux test.s -o test.o
|
||||
## lld test.o -o phdrs.elf-x86-64
|
||||
##
|
||||
## test.s:
|
||||
## .global _start
|
||||
## _start:
|
||||
##
|
||||
## .global d
|
||||
## .section .foo,"awT",@progbits
|
||||
## d:
|
||||
## .long 2
|
||||
##
|
||||
RUN: llvm-objdump -p %p/../../../Object/Inputs/phdrs.elf-x86-64 \
|
||||
RUN: | FileCheck %s
|
||||
|
||||
CHECK: RELRO off 0x0000000000001000 vaddr 0x0000000000201000 paddr 0x0000000000201000 align 2**0
|
||||
CHECK-NEXT: filesz 0x0000000000000004 memsz 0x0000000000001000 flags r--
|
@ -36,6 +36,9 @@ template <class ELFT> void printProgramHeaders(const ELFFile<ELFT> *o) {
|
||||
case ELF::PT_GNU_EH_FRAME:
|
||||
outs() << "EH_FRAME ";
|
||||
break;
|
||||
case ELF::PT_GNU_RELRO:
|
||||
outs() << " RELRO ";
|
||||
break;
|
||||
case ELF::PT_GNU_STACK:
|
||||
outs() << " STACK ";
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user