summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin-Yih Hsu <minyihh@uci.edu>2021-08-07 17:07:28 -0700
committerMin-Yih Hsu <minyihh@uci.edu>2021-08-07 17:19:12 -0700
commit4c0d15f86f33dc61ec1dc618fb164c127409edfc (patch)
treec3c9fe78c133399a344b8e941c9f8d94500e6fc3
parent5894134c6ed843c7a3b03550db5ac2b2bcf6fc98 (diff)
Update `llvm-readobj` command invocation in extract-section.py
Change `-elf-output-style` to `--elf-output-style` to reflect the recent changes on short/long CLI options in LLVM binary utils.
-rwxr-xr-xllvm/utils/extract-section.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/extract-section.py b/llvm/utils/extract-section.py
index ca19b0ee8b61..0c96b52fc522 100755
--- a/llvm/utils/extract-section.py
+++ b/llvm/utils/extract-section.py
@@ -31,7 +31,7 @@ def read_raw_stdin():
def get_raw_section_dump(readobj_path, section_name, input_file):
import subprocess
- cmd = [readobj_path, '-elf-output-style=GNU', '--hex-dump={}'.format(section_name),
+ cmd = [readobj_path, '--elf-output-style=GNU', '--hex-dump={}'.format(section_name),
input_file]
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)