search for: obj2yaml

Displaying 20 results from an estimated 72 matches for "obj2yaml".

2020 Sep 16
2
Making library calls for obj2yaml functionalities
...//lists.llvm.org/pipermail/llvm-dev/2020-July/143512.html, and https://reviews.llvm.org/D85408, we would like to consider a design which allows external tools to read the structured contents of the .bb_addr_map section with library calls into an LLVM library. At the same time, we need to have tools/obj2yaml tests in place for bb_addr_map. So it sounds like the perfect place to do it. However, the current structure does not expose the obj2yaml functionalities under lib/ObjectYAML. In general, there seems to be an inconsistency regarding how obj2yaml and yaml2obj tools are structured. The latter has a...
2014 Oct 20
2
[LLVMdev] [lld][ELF] obj2yaml vs normalized input files (similar to macho)
Hi, After looking at the Normalized Readers in mach-o, I feel it would be nice if the Gnu flavor to adopt this design what mach-o did in addition to using obj2yaml. Its so much easier to test in the context of lld with normalized readers, IMO. Opinions ? Thanks Shankar Easwaran -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
2020 Sep 18
2
Making library calls for obj2yaml functionalities
...a feature added to > llvm-readobj/llvm-readelf. For some sections, it delegates to methods in > places like the Object library and BinaryFormat, but for the more > specialised sections, it typically has code local to itself doing the work. > The same is true for other dumping tools like obj2yaml and llvm-objdump, > which means in some cases, we have multiple varieties of parsers for the > same thing. I'm not sure there's necessarily a strong motivation for doing > so, however, so I'd be happy to support functionality being added elsewhere > in one of those libraries...
2012 Jun 08
0
[LLVMdev] PATCH: add new test tool: obj2yaml
This patch adds a tool called 'obj2yaml', which takes an object file, and produces a YAML representation of the file. This is a companion tool to Michael Spencer's proposed "yaml2obj" tool. This tool processes only COFF files; the plan is to enhance it to handle other object formats, as well as object archives. The pri...
2014 Jul 27
2
[LLVMdev] [RFC] Install yaml2obj and obj2yaml utilities together with other LLVM tools
Now the yaml2obj and obj2yaml utilities used in LLVM and LLD projects tests only and not installed by the "make install" command. I think they might be also useful in third-party projects like MCLinker. I suggest to move these utilities into the "tools" category and install them together with other LLVM tool...
2014 Jul 28
2
[LLVMdev] [RFC] Install yaml2obj and obj2yaml utilities together with other LLVM tools
Let's suppose that MCLinker folks are here already - I am a committer of this project :). Maybe I did not formulate my suggestion correctly. When I offer to "install" the yaml2obj and obj2yaml utilities I mean result of the "make install" command only. I do not suggest to include this utilities into any distributed binary packages. To be clear I attached the patch with suggested changes. On Mon, Jul 28, 2014 at 3:07 AM, Sean Silva <chisophugis at gmail.com> wrote: > I...
2018 Jan 26
3
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
I'm now thinking that there's a bug in either obj2yaml or yaml2obj, because if I run just those two tools on my codebase it generates yaml files that can't be decoded, will try now to not add any section to the obj file in llvm-objcopy to see if I can link with obj files that I rewrite (but without adding symbols or sections). One of the bugs that...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...provide a reduced test case we can try to fix it, but admittedly it can often take some effort to generate a reduced test case. The best way is to use creduce. Use cl or clang-cl and write the pre-processed output to a file, then run creduce on that file with a test that basically roundtrips from obj2yaml to yaml2obj and return 1 if there's an error. Then let it run for a couple of hours (or days) and you should come back to a minimal repro. Granted, it's understandable if you don't have the time for that :) Also, I got rid of my local changes and re-ran the test case and I'm see...
2013 Oct 17
2
[LLVMdev] llvm-objdump disassembling jmp
...jmp 2 <main+0x2> 2: c3 retq [secdev:/tmp] s$ llvm-objdump -d a.o |tail -n 2 0: eb 00 jmp 0 2: c3 ret Is this intended behavior? As an aside, obj2yaml can't handle this object file: [secdev:/tmp] s$ ~/build-master/bin/obj2yaml a.o LLVM ERROR: The end of the file was unexpectedly encountered -- Stephen Checkoway
2013 Oct 17
0
[LLVMdev] llvm-objdump disassembling jmp
...hile llvm-objdump is printing the raw imm8 field value. The binutils behavior is the desirable behavior, because the semantics of the written operand to a JMP instruction in assembler is the actual address (usually represented as a symbolic label), not the raw displacement. > > As an aside, obj2yaml can't handle this object file: > [secdev:/tmp] s$ ~/build-master/bin/obj2yaml a.o > LLVM ERROR: The end of the file was unexpectedly encountered > FYI, obj2yaml only handles COFF currently. It should probably diagnose being fed and ELF file better than dying randomly though. -- Sean...
2018 Jan 26
4
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...st case we > can try to fix it, but admittedly it can often take some effort to generate > a reduced test case. The best way is to use creduce. Use cl or clang-cl > and write the pre-processed output to a file, then run creduce on that file > with a test that basically roundtrips from obj2yaml to yaml2obj and return > 1 if there's an error. Then let it run for a couple of hours (or days) and > you should come back to a minimal repro. > > Granted, it's understandable if you don't have the time for that :) > > > Also, I got rid of my local changes and re-r...
2012 Jun 22
0
[LLVMdev] Best location for testing-type tools?
So, I've written a tool called "obj2yaml". It takes an object file (currently just COFF), and dumps out a textual representation. Micheal Spencer has written a companion tool (not yet landed) called "yaml2obj". The primary use for these tools is for generating test cases for lld, though they are general purpose tools, and...
2018 Jan 26
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...a(argc); >>> return x; >>> } >>> >>> >>> clang-cl /Z7 /c a.cpp /Foa.noghash.obj >>> clang-cl /Z7 /c a.cpp -mllvm -emit-codeview-ghash-section >>> /Foa.ghash.good.obj >>> llvm-objcopy a.noghash.obj a.ghash.bad.obj >>> obj2yaml a.ghash.good.obj > a.ghash.good.yaml >>> obj2yaml a.ghash.bad.obj > a.ghash.bad.yaml >>> >>> Then open these 2 yaml files up in a diff viewer. It looks like the >>> hashes aren't getting emitted at all. For example, in the good yaml file I >>&gt...
2019 Mar 06
3
RFC: Adding "minidump" support to obj2yaml
Hello all, yesterday I sent an email <http://lists.llvm.org/pipermail/lldb-dev/2019-March/014811.html> to lldb-dev proposing a new tool in lldb for yamlization of minidump files. It's been suggested to me that instead of a new tool it may be better to add support for that format to obj2yaml instead. Hence, this email. :) As I expect most people are unfamiliar with this format, I'm going to start off with a brief introduction. Minidump is the native "core file" format for windows systems. However, it is widely used on other systems too. Probably the most popular tools p...
2020 Jan 10
6
[RFC][binutils] Machine-readable output from Binutils - possible GSOC project?
...nother output style for llvm-readobj. Does anybody have any different opinion there? 3. Is there any additional tooling in relation to this project that you think would be important to be a part of this project, e.g. a lit function to query the output? 4. How might this interact with obj2yaml? Could the new output ultimately be used to replace it? 5. Is there a priority for a specific format (e.g. ELF, DWARF, COFF)? 6. Would anybody be interested in co-mentoring such a project? Thanks in advance for the comments! James -------------- next part -------------- An HTML attac...
2015 Apr 20
4
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
On Mon, Apr 20, 2015 at 1:44 AM, Shankar Easwaran <shankarke at gmail.com> wrote: > Attached patch fixes the issue. Thanks for the quick fix. The patch LGTM if you add a test case. Unfortunately yaml2obj does not support duplicated section names but we can use a binary input file. -- Simon Atanasyan
2018 Jan 26
1
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...int argc, char **argv) { >> a(argc); >> return x; >> } >> >> >> clang-cl /Z7 /c a.cpp /Foa.noghash.obj >> clang-cl /Z7 /c a.cpp -mllvm -emit-codeview-ghash-section >> /Foa.ghash.good.obj >> llvm-objcopy a.noghash.obj a.ghash.bad.obj >> obj2yaml a.ghash.good.obj > a.ghash.good.yaml >> obj2yaml a.ghash.bad.obj > a.ghash.bad.yaml >> >> Then open these 2 yaml files up in a diff viewer. It looks like the >> hashes aren't getting emitted at all. For example, in the good yaml file I >> see this: >>...
2016 Jan 15
2
Consistently prefixing llvm/bin executables
Has it ever been considered to prefix executables like opt, bugpoint, obj2yaml, yaml2obj and macho-dump with llvm-? Especially things like 'opt' are too generic of a name and very likely to clash with existing stuff in $PATH.
2017 Nov 01
2
elf2yaml document structure, for dynamic symbols
...hy you want to > add the new feature to yaml2obj. Maybe, explaining your motivation would > help others understand your problem. > > On Wed, Nov 1, 2017 at 10:43 AM, Dave Lee <davelee.com at gmail.com> wrote: > >> I'm adding support for elf dynamic symbols in yaml2obj/obj2yaml. I'm >> seeking opinions about how to model dynamic symbols (and symbols in >> general) in the yaml structure. Currently, symbols in elf are represented >> by a top level `Symbols` key, within which symbols are grouped by binding >> type (Global, Weak, Local). The simple...
2015 Apr 20
2
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
...etter to check in a binary at least for now than checking it in without any tests. On Mon, Apr 20, 2015 at 7:59 AM, Shankar Easwaram <shankarke at gmail.com> wrote: > I plan to add a test case but couldn't add because of yaml2obj support. I > am adding that support to yaml2obj and obj2yaml and push this patch later. > I don't like the idea of adding binary files to the test repo as we need to > keep cleaning up later. > > > > > On Apr 20, 2015, at 03:34, Simon Atanasyan <simon at atanasyan.com> wrote: > > > >> On Mon, Apr 20, 2015 at 1:44...