[llvm] d06b8b4 - [llvm-objdump] Left justify display of OpenBSD headers
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 01:42:37 PST 2022
Author: Brad Smith
Date: 2022-11-19T04:41:15-05:00
New Revision: d06b8b4ae38b743fa18eed9e7b0fcd204a0ec2ce
URL: https://github.com/llvm/llvm-project/commit/d06b8b4ae38b743fa18eed9e7b0fcd204a0ec2ce
DIFF: https://github.com/llvm/llvm-project/commit/d06b8b4ae38b743fa18eed9e7b0fcd204a0ec2ce.diff
LOG: [llvm-objdump] Left justify display of OpenBSD headers
This looks the same as OpenBSD's GNU objdump.
Added:
Modified:
llvm/tools/llvm-objdump/ELFDump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objdump/ELFDump.cpp b/llvm/tools/llvm-objdump/ELFDump.cpp
index b7ce08613c9b8..b98b45e3015a1 100644
--- a/llvm/tools/llvm-objdump/ELFDump.cpp
+++ b/llvm/tools/llvm-objdump/ELFDump.cpp
@@ -248,16 +248,16 @@ static void printProgramHeaders(const ELFFile<ELFT> &Obj, StringRef FileName) {
outs() << " NOTE ";
break;
case ELF::PT_OPENBSD_BOOTDATA:
- outs() << " OPENBSD_BOOTDATA ";
+ outs() << "OPENBSD_BOOTDATA ";
break;
case ELF::PT_OPENBSD_MUTABLE:
- outs() << " OPENBSD_MUTABLE ";
+ outs() << "OPENBSD_MUTABLE ";
break;
case ELF::PT_OPENBSD_RANDOMIZE:
- outs() << " OPENBSD_RANDOMIZE ";
+ outs() << "OPENBSD_RANDOMIZE ";
break;
case ELF::PT_OPENBSD_WXNEEDED:
- outs() << " OPENBSD_WXNEEDED ";
+ outs() << "OPENBSD_WXNEEDED ";
break;
case ELF::PT_PHDR:
outs() << " PHDR ";
More information about the llvm-commits
mailing list