summaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/yaml2obj.cpp
AgeCommit message (Collapse)Author
2024-11-17[ObjectYAML] Remove unused includes (NFC) (#116530)Kazu Hirata
Identified with misc-include-cleaner.
2023-12-14[SystemZ][z/OS] yaml2obj for header and end records (#73859)Yusra Syeda
This PR implements part 1 of yaml2obj for the GOFF Object File Format. It adds support for the header and end records. --------- Co-authored-by: Yusra Syeda <yusra.syeda@ibm.com>
2022-07-01[ObjectYAML] Add offloading binary implementations for obj2yaml and yaml2objJoseph Huber
This patchs adds the necessary code for inspecting or creating offloading binaries using the standing `obj2yaml` and `yaml2obj` features in LLVM. Depends on D127774 Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D127776
2022-06-01[ObjectYAML][DX] Support yaml2dxcontainerChris Bieneman
This patch adds a the first bits of support for a yaml representation of dxcontainer files. Since the YAML representation's primary purpose is testing infrastructure, the yaml representation supports both verbose and a more friendly format by making computable sizes and offsets optional. If provided they are validated to be correct, otherwise they are computed on the fly during emission. As I expand the format I'll be able to make more size fields optional, and I will continue to make the format easier to work with. Depends on D124804 Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D124944
2021-06-07[yaml2obj] Initial the support of yaml2obj for 32-bit XCOFF.Esme-Yi
Summary: The patch implements the mapping of the Yaml information to XCOFF object file to enable the yaml2obj tool for XCOFF. Currently only 32-bit is supported. Reviewed By: jhenderson, shchenz Differential Revision: https://reviews.llvm.org/D95505
2020-10-28[yaml2obj][obj2yaml] - Teach tools to work with regular archives.Georgii Rymar
This teaches obj2yaml to dump valid regular (not thin) archives. This also teaches yaml2obj to recognize archives YAML descriptions, what allows to craft all different kinds of archives (valid and broken ones). Differential revision: https://reviews.llvm.org/D89949
2020-06-10[yaml2obj] - Introduce a 10 Mb limit of the output by default and a ↵Georgii Rymar
--max-size option. Multiple times we faced an issue of huge outputs due to unexpected behavior or incorrect test cases. The last one was https://reviews.llvm.org/D80629#2073066. This patch limits the output to 10 Mb for ELF and introduces the --max-size to change this limit. I've tried to keep the implementation non-intrusive. The current logic we have is that we prepare section content in a buffer first and write it to the output later. This patch checks the available limit on each writing attempt to this buffer and stops writing when the limit is reached and raises the internal error flag. Later, this flag is is checked before the actual writing to a file happens and an error is reported. Differential revision: https://reviews.llvm.org/D81258
2019-09-13[yaml2obj/ObjectYAML] - Cleanup the error reporting API, add custom errors ↵George Rimar
handlers. This is a continuation of the YAML library error reporting refactoring/improvement and the idea by itself was mentioned in the following thread: https://reviews.llvm.org/D67182?id=218714#inline-603404 This performs a cleanup of all object emitters in the library. It allows using the custom one provided by the caller. One of the nice things is that each tool can now print its tool name, e.g: "yaml2obj: error: <text>" Also, the code became a bit simpler. Differential revision: https://reviews.llvm.org/D67445 llvm-svn: 371865
2019-09-13[lib/ObjectYAML] - Change interface to return `bool` instead of `int`. NFCIGeorge Rimar
It was suggested in comments for D67445 to split this part. Differential revision: https://reviews.llvm.org/D67488 llvm-svn: 371828
2019-08-07[yaml2obj] Move core yaml2obj code into lib and include for use in unit testsAlex Brachet
Reviewers: jhenderson, rupprecht, MaskRay, grimar, labath Reviewed By: rupprecht Subscribers: gribozavr, mgrang, seiya, mgorny, sbc100, hiraditya, aheejin, jakehehrlich, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65255 llvm-svn: 368119
2019-08-06Revert "[yaml2obj] Move core yaml2obj code into lib and include for use in ↵Dmitri Gribenko
unit tests" This reverts commit r368021, it broke tests. llvm-svn: 368035
2019-08-06[yaml2obj] Move core yaml2obj code into lib and include for use in unit testsAlex Brachet
Reviewers: jhenderson, rupprecht, MaskRay, grimar, labath Reviewed By: rupprecht Subscribers: seiya, mgorny, sbc100, hiraditya, aheejin, jakehehrlich, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65255 llvm-svn: 368021