[PATCH] D27456: [llvm-readobj] - Teach readobj to print PT_OPENBSD_BOOTDATA header
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 08:42:34 PST 2016
davide added inline comments.
================
Comment at: test/tools/llvm-readobj/program-headers.test:16
## linker.script:
-## PHDRS { text PT_LOAD FILEHDR PHDRS; foo 0x65a3dbe6; bar 0x65a3dbe7; }
+## PHDRS { text PT_LOAD FILEHDR PHDRS; foo 0x65a3dbe6; bar 0x65a3dbe7; zed 0x65a41be6; }
## SECTIONS { . = SIZEOF_HEADERS; .all : { *(.*) } : text }
----------------
why did you have to change the linker script?
================
Comment at: tools/llvm-readobj/ELFDumper.cpp:1161-1163
LLVM_READOBJ_ENUM_CASE(ELF, PT_OPENBSD_RANDOMIZE);
LLVM_READOBJ_ENUM_CASE(ELF, PT_OPENBSD_WXNEEDED);
+ LLVM_READOBJ_ENUM_CASE(ELF, PT_OPENBSD_BOOTDATA);
----------------
unsorted.
https://reviews.llvm.org/D27456
More information about the llvm-commits
mailing list