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.
This commit is contained in:
Min-Yih Hsu 2021-08-07 17:07:28 -07:00
parent 5894134c6e
commit 4c0d15f86f
1 changed files with 1 additions and 1 deletions

View File

@ -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)