When -all-headers is given it is supposed to dump all headers,
but now it skips the archive headers for no reason.
The patch fixes that.
Differential D56780
[llvm-objdump] - Dump the archive headers when -all-headers is specified grimar on Jan 16 2019, 5:49 AM. Authored by
Details When -all-headers is given it is supposed to dump all headers, The patch fixes that.
Diff Detail Event TimelineComment Actions The code change looks good to me, but I'd like a bit more testing, if it's okay. I assume that the output is something like the following for each archive member in turn: member1.o: but I don't see anything showing that we're printing things that way (instead of printing all archive headers, then all file headers etc): we should have a test for that. Comment Actions I added a requested test showing how -all-headers now dumps the archive headers. There is a little difference in the order between llvm-objump and GNU objdump. The latter prints them before the architecture:
I am not sure how much it is important to change Comment Actions LGTM with one nit. I think it would make more sense for the archive header to appear before the file header (the archive header is conceptually before the file header in the archive, and isn't really part of the ELF file itself), but like you said, that is a different change.
|