readelf: cmdline data
authorAlan Modra <amodra@gmail.com>
Wed, 22 Apr 2020 05:09:53 +0000 (14:39 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Apr 2020 11:32:50 +0000 (21:02 +0930)
commit6431e4096805b68f7cc4a17002c34ccd40f7dde2
treeade01eb664e99b873bf73a9fdea1242cc9df8d40
parent714534e1b88608f92b6946d8e5a24ea51a40e363
readelf: cmdline data

Don't use a struct filedata for cmdline, which only needs two of the
filedata fields.

* readelf.c (struct dump_data): New, used..
(cmdline): ..here, and..
(struct filedata): ..here.  Adjust all uses.
(request_dump_bynumber, request_dump, parse_args): Pass in a
struct dump_data* rather than Filedata*.  Adjust callers.
(main): Don't set cmdline.file_name.
binutils/ChangeLog
binutils/readelf.c