[llvm-bugs] [Bug 45416] New: Emit a more useful error for invalid --dump-section syntax
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 3 06:06:03 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45416
Bug ID: 45416
Summary: Emit a more useful error for invalid --dump-section
syntax
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
If a user uses the --dump-section option, but it specifies it incorrectly, as
in the example below, without a '=' sign, a rather useless error message is
produced (at least on Windows):
C:\Work> llvm-objcopy t.elf t.out --dump-section .text
llvm-objcopy.exe: error: 't.elf': The program issued a command but the command
length is incorrect.
We should add some error checking to this option to ensure the format is
correct, i.e. that the file name is not empty, and that there's an equals sign
splitting it from the section name.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200403/ee53dc67/attachment.html>
More information about the llvm-bugs
mailing list