Bug 29786 - Unable to understand, in objdump, the user is not using the name, so using a.out
Summary: Unable to understand, in objdump, the user is not using the name, so using a.out
Status: RESOLVED NOTABUG
Alias: None
Product: elfutils
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-15 20:52 UTC by lin zhuorong
Modified: 2022-11-15 20:55 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lin zhuorong 2022-11-15 20:52:19 UTC
Unable to understand, in objdump, the user is not using the name, so using a.out

Why not use an empty string?


elfutils-0.187\src\objdump.c

```
  if (remaining == argc)
    /* The user didn't specify a name so we use a.out.  */
    result = process_file ("a.out", false);

```
Comment 1 Frank Ch. Eigler 2022-11-15 20:55:54 UTC
Why not use an empty string as a filename?  A user can type

     eu-objdump ""

to pass an empty string if that's really what she wants.
Defaulting to "a.out" in the absence of a filename is traditional.