#
2d3faad7 |
| 26-Feb-2019 |
Igor Kudrin <ikudrin@accesssoftek.com> |
[llvm-objdump] Implement -Mreg-names-raw/-std options.
The --disassembler-options, or -M, are used to customize the disassembler and affect its output.
The two implemented options allow selecting r
[llvm-objdump] Implement -Mreg-names-raw/-std options.
The --disassembler-options, or -M, are used to customize the disassembler and affect its output.
The two implemented options allow selecting register names on ARM: * With -Mreg-names-raw, the disassembler uses rNN for all registers. * With -Mreg-names-std it prints sp, lr and pc for r13, r14 and r15, which is the default behavior of llvm-objdump.
Differential Revision: https://reviews.llvm.org/D57680
llvm-svn: 354870
show more ...
|
#
56d651db |
| 25-Feb-2019 |
Xing GUO <higuoxing@gmail.com> |
[llvm-objdump] Add `Version References` dumper
Summary: Add symbol version dumper for [#30241](https://bugs.llvm.org/show_bug.cgi?id=30241)
Reviewers: jhenderson, MaskRay, kristina, emaste, grimar
[llvm-objdump] Add `Version References` dumper
Summary: Add symbol version dumper for [#30241](https://bugs.llvm.org/show_bug.cgi?id=30241)
Reviewers: jhenderson, MaskRay, kristina, emaste, grimar
Reviewed By: jhenderson, grimar
Subscribers: grimar, rupprecht, jakehehrlich, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D54697
llvm-svn: 354782
show more ...
|
#
0f436771 |
| 19-Feb-2019 |
Matthew Voss <matthew.voss@sony.com> |
Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped""
- Tests that use multiple short switches now test them grouped and ungrouped.
- Ensure the output of ungroup
Revert "Revert "[llvm-objdump] Allow short options without arguments to be grouped""
- Tests that use multiple short switches now test them grouped and ungrouped.
- Ensure the output of ungrouped and grouped variants is identical
Differential Revision: https://reviews.llvm.org/D57904
llvm-svn: 354375
show more ...
|
#
c5f29200 |
| 19-Feb-2019 |
George Rimar <grimar@accesssoftek.com> |
[yaml2obj] - Do not skip zeroes blocks if there are relocations against them.
This is for -D -reloc combination.
With this patch, we do not skip the zero bytes that have a relocation against them w
[yaml2obj] - Do not skip zeroes blocks if there are relocations against them.
This is for -D -reloc combination.
With this patch, we do not skip the zero bytes that have a relocation against them when -reloc is used. If -reloc is not used, then the behavior will be the same.
Differential revision: https://reviews.llvm.org/D58174
llvm-svn: 354319
show more ...
|
#
9cb76856 |
| 14-Feb-2019 |
Matthew Voss <matthew.voss@sony.com> |
Revert "[llvm-objdump] Allow short options without arguments to be grouped"
Reverted due to failures on the llvm-hexagon-elf.
This reverts commit 77e1f27476c89f65eeb496d131065177e6417f23.
llvm-svn
Revert "[llvm-objdump] Allow short options without arguments to be grouped"
Reverted due to failures on the llvm-hexagon-elf.
This reverts commit 77e1f27476c89f65eeb496d131065177e6417f23.
llvm-svn: 354002
show more ...
|
#
77e1f274 |
| 14-Feb-2019 |
Matthew Voss <matthew.voss@sony.com> |
[llvm-objdump] Allow short options without arguments to be grouped
Summary:
https://bugs.llvm.org/show_bug.cgi?id=31679
Reviewers: kristina, jhenderson, grimar, jakehehrlich, rupprecht
Subscriber
[llvm-objdump] Allow short options without arguments to be grouped
Summary:
https://bugs.llvm.org/show_bug.cgi?id=31679
Reviewers: kristina, jhenderson, grimar, jakehehrlich, rupprecht
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57904
llvm-svn: 353998
show more ...
|
Revision tags: llvmorg-7.1.0, llvmorg-7.1.0-rc1, llvmorg-8.0.0-rc2 |
|
#
5d9c8ad4 |
| 01-Feb-2019 |
Sid Manning <sidneym@quicinc.org> |
[llvm-objdump] - llvm-objdump can skip bytes at the end of a section.
Differential Revision: https://reviews.llvm.org/D57549
llvm-svn: 352900
|
#
82937e44 |
| 31-Jan-2019 |
Matt Davis <Matthew.Davis@sony.com> |
[ELF] Return the section name when calling getSymbolName on a section symbol.
Summary: Previously, llvm-nm would report symbols for .debug and .note sections as: '?' with an empty section name:
``
[ELF] Return the section name when calling getSymbolName on a section symbol.
Summary: Previously, llvm-nm would report symbols for .debug and .note sections as: '?' with an empty section name:
``` 00000000 ? 00000000 ? ... ```
With this patch the output more closely resembles GNU nm: ``` 00000000 N .debug_abbrev 00000000 n .note.GNU-stack ... ```
This patch calls `getSectionName` for sections that belong to symbols of type `ELF::STT_SECTION`, which returns the name of the section from the section string table.
Reviewers: Bigcheese, davide, jhenderson
Reviewed By: davide, jhenderson
Subscribers: rupprecht, jhenderson, llvm-commits
Differential Revision: https://reviews.llvm.org/D57105
llvm-svn: 352785
show more ...
|
#
4463ebe4 |
| 28-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Restore a piece of code removed by mistake in r352366.
Seems when committed the r352366 ("[llvm-objdump] - Print LMAs when dumping section headers.") I resolved merge conflict incor
[llvm-objdump] - Restore a piece of code removed by mistake in r352366.
Seems when committed the r352366 ("[llvm-objdump] - Print LMAs when dumping section headers.") I resolved merge conflict incorrectly and removed this piece by mistake.
Bots did not catch this yet, seems they are slow today, but the `X86/adjust-vma.test` test case fails locally for me without that.
llvm-svn: 352383
show more ...
|
#
87fa2e66 |
| 28-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Print LMAs when dumping section headers.
When --section-headers is used, GNU objdump prints both LMA and VMA for sections. llvm-objdump does not do that what makes it's output be sl
[llvm-objdump] - Print LMAs when dumping section headers.
When --section-headers is used, GNU objdump prints both LMA and VMA for sections. llvm-objdump does not do that what makes it's output be slightly inconsistent.
Patch teaches llvm-objdump to print LMA/VMA for ELF file formats. The behavior for other formats remains unchanged.
Differential revision: https://reviews.llvm.org/D57146
llvm-svn: 352366
show more ...
|
#
740974d9 |
| 28-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Fix comment. NFC.
This was mentioned by James Henderson in review for https://reviews.llvm.org/D57051.
llvm-svn: 352348
|
#
4c3b2976 |
| 28-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Implement the --adjust-vma option.
GNU objdump's help says: "--adjust-vma: Add OFFSET to all displayed section addresses" In real life what it does is a bit more complicated (and IM
[llvm-objdump] - Implement the --adjust-vma option.
GNU objdump's help says: "--adjust-vma: Add OFFSET to all displayed section addresses" In real life what it does is a bit more complicated (and IMO not always reasonable. For example, GNU objdump prints not only VMA, but also LMA for sections. And with --adjust-vma it adjusts LMA, but only when a section has relocations. llvm-objsump does not seem to support printing LMAs yet, but GNU's logic anyways does not make sense for me here).
This patch tries to adjust VMA. I tried to implement a reasonable approach. I am not adjusting sections that are not allocatable. As, for example, adjusting debug sections VA's and rel[a] sections VA's should not make sense. This behavior seems to be GNU compatible.
Differential revision: https://reviews.llvm.org/D57051
llvm-svn: 352347
show more ...
|
Revision tags: llvmorg-8.0.0-rc1 |
|
#
617adef9 |
| 23-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Move common code to a new printRelocation() helper. NFC.
This extracts the common code for printing relocations into a new helper function.
llvm-svn: 351951
|
#
fd383e7e |
| 23-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Move variable. NFC.
It was too far from the place where it is used.
llvm-svn: 351942
|
#
bcbe98bc |
| 23-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Split disassembleObject() into two methods. NFCI.
Currently, disassembleObject() is a ~550 lines length function.
This patch splits it into two, where first do all helper objects i
[llvm-objdump] - Split disassembleObject() into two methods. NFCI.
Currently, disassembleObject() is a ~550 lines length function.
This patch splits it into two, where first do all helper objects initializations and calls the second which does all the rest job. This is a straightforward split.
Differential revision: https://reviews.llvm.org/D57020
llvm-svn: 351940
show more ...
|
#
121fcd7e |
| 22-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Introduce getRelocsMap() helper. NFCI.
Currently disassembleObject() is a ~550 lines length function. This patch extracts the code that creates a section->their relocation mapping i
[llvm-objdump] - Introduce getRelocsMap() helper. NFCI.
Currently disassembleObject() is a ~550 lines length function. This patch extracts the code that creates a section->their relocation mapping into a new helper function to simplify/reduce it a bit.
Differential revision: https://reviews.llvm.org/D57019
llvm-svn: 351824
show more ...
|
#
2946cd70 |
| 19-Jan-2019 |
Chandler Carruth <chandlerc@gmail.com> |
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license.
We understand that people may be surprised that we're moving the header entirely to discuss the ne
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license.
We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach.
Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository.
llvm-svn: 351636
show more ...
|
#
d1a3bd49 |
| 18-Jan-2019 |
Clement Courbet <courbet@google.com> |
Revert r351529 "[llvm-objdump][NFC] Improve readability."
msan errors in ELF/strip-all.s.
llvm-svn: 351556
|
#
3335f25d |
| 18-Jan-2019 |
Clement Courbet <courbet@google.com> |
Reland r351529 "[llvm-objdump][NFC] Improve readability."
`SectionSymbol*` is cast from `void*` to `std::tuple<uint64_t, StringRef, uint8_t>` in AMDGPUSymbolizer, so it has to *be* one, not *act lik
Reland r351529 "[llvm-objdump][NFC] Improve readability."
`SectionSymbol*` is cast from `void*` to `std::tuple<uint64_t, StringRef, uint8_t>` in AMDGPUSymbolizer, so it has to *be* one, not *act like* one.
llvm-svn: 351553
show more ...
|
#
5e364331 |
| 18-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Dump the archive headers when -all-headers is specified.
When -all-headers is given it is supposed to dump all headers, but now it skips the archive headers for no reason.
The patc
[llvm-objdump] - Dump the archive headers when -all-headers is specified.
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 revision: https://reviews.llvm.org/D56780
llvm-svn: 351547
show more ...
|
#
c1964885 |
| 18-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Move getRelocationValueString and dependenices out of the llvm-objdump.cpp
getRelocationValueString is a dispatcher function that calls the corresponding ELF/COFF/Wasm/MachO impleme
[llvm-objdump] - Move getRelocationValueString and dependenices out of the llvm-objdump.cpp
getRelocationValueString is a dispatcher function that calls the corresponding ELF/COFF/Wasm/MachO implementations that currently live in the llvm-objdump.cpp file.
These implementations better be moved to ELFDump.cpp, COFFDump.cpp and other corresponding files, to move platform specific implementation out from the common logic.
The patch does that. Also, I had to move ToolSectionFilter helper and SectionFilterIterator, SectionFilter to a header to make them available across the objdump code.
Differential revision: https://reviews.llvm.org/D56842
llvm-svn: 351545
show more ...
|
#
845d3295 |
| 18-Jan-2019 |
George Rimar <grimar@accesssoftek.com> |
[llvm-objdump] - Show aliases in -help.
Currently llvm-objdump is inconsistent.
When -help is specified it shows no aliases except two. Aliases are shown with -help-hidden though. GNU objdump also
[llvm-objdump] - Show aliases in -help.
Currently llvm-objdump is inconsistent.
When -help is specified it shows no aliases except two. Aliases are shown with -help-hidden though. GNU objdump also prints them by default.
This patch does a change to always show all aliases when -help is given.
Differential revision: https://reviews.llvm.org/D56853
llvm-svn: 351542
show more ...
|
#
2d7d4a38 |
| 18-Jan-2019 |
Clement Courbet <courbet@google.com> |
Revert r351529 "[llvm-objdump][NFC] Improve readability."
Breaks labels-branch.s
llvm-svn: 351534
|
#
cec38094 |
| 18-Jan-2019 |
Clement Courbet <courbet@google.com> |
[llvm-objdump][NFC] Improve readability.
Summary: Introduce a `struct SectionSymbol` instead of `tuple<uint64_t, StringRef, uint8>`.
Reviewers: jhenderson, davide
Subscribers: rupprecht, llvm-comm
[llvm-objdump][NFC] Improve readability.
Summary: Introduce a `struct SectionSymbol` instead of `tuple<uint64_t, StringRef, uint8>`.
Reviewers: jhenderson, davide
Subscribers: rupprecht, llvm-commits
Differential Revision: https://reviews.llvm.org/D56858
llvm-svn: 351529
show more ...
|
#
f3b762a0 |
| 17-Jan-2019 |
Wouter van Oortmerssen <aardappel@gmail.com> |
[WebAssembly] Fixed objdump not parsing function headers.
Summary: objdump was interpreting the function header containing the locals declaration as instructions. To parse these without injecting ta
[WebAssembly] Fixed objdump not parsing function headers.
Summary: objdump was interpreting the function header containing the locals declaration as instructions. To parse these without injecting target specific code in objdump, MCDisassembler::onSymbolStart was added to be implemented by the WebAssembly implemention.
WasmObjectFile now returns a code offset for the "address" of a symbol, rather than the index. This is also more in-line with what other targets do.
Also ensured that the AsmParser correctly puts each function in its own segment to enable this test case.
Reviewers: sbc100, dschuff
Subscribers: jgravelle-google, aheejin, sunfish, rupprecht, llvm-commits
Differential Revision: https://reviews.llvm.org/D56684
llvm-svn: 351460
show more ...
|