search for: yaml2obj

Displaying 20 results from an estimated 143 matches for "yaml2obj".

2019 Nov 15
2
Commit history duplicated, seeing weird diffusion activity (Was: [Diffusion] rG67c416dc9a5a: [DebugInfo] Allow spill slots in call site parameter descriptions)
...t's actually what happened and am confused and concerned. My commit was "[DebugInfo] Allow spill slots in call site parameter descriptions", and it appears in the history under two hashes: 1ee84e and 67c416. The first commit contains the actual change. The second touches something in yaml2obj, which I promise I did not do: ``` $ g show 67c416dc9a5aeda034d46bdcb3b63fffa462d28e commit 67c416dc9a5aeda034d46bdcb3b63fffa462d28e Author: Vedant Kumar <vsk at apple.com> Date: Thu Nov 14 09:20:58 2019 [DebugInfo] Allow spill slots in call site parameter descriptions [snip]...
2020 Mar 31
2
[yaml2obj] GSoC-20: Add DWARF support to yaml2obj
Hi there, I'm proposing for the GSoC project: Add DWARF support to yaml2obj[1]. I've uploaded my proposal. If you have any suggestion or ideas, feel free to leave a comment[2]. Thanks! ------ [1] https://llvm.org/OpenProjects.html#llvm_dwarf_yaml2obj [2] https://docs.google.com/document/d/1miCuMQEX8WZ9_hWXWQtOYTA4JAK-yDnPV9vyO_d5vzE/edit?usp=sharing -- Best Regards,...
2020 Feb 03
2
RFC: Add a preprocessor to yaml2obj (and other YAML tools)
I am adding -D k=v to yaml2obj, similar to clang -D. This makes it easy to generate {32-bit,64-bit} x {big-endian,little-endian} tests. --- !ELF FileHeader: Class: ELFCLASS[[BITS]] Data: ELFDATA2[[ENCODE]] Type: ET_DYN Machine: EM_X86_64 # RUN: yaml2obj -D BITS=32 -D ENCODE=LSB %s -o %t.32le #...
2020 Mar 31
2
[yaml2obj] GSoC-20: Add DWARF support to yaml2obj
On 31/03/2020 18:29, Adrian Prantl via llvm-dev wrote: > It's great to see someone interested in improving yaml2obj! > > As far as I'm concerned, the main problem with yam2obj for DWARF testcases is that at the moment, it is both too high-level and too low-level at the same time. For writing debug info testcases, yaml2obj at the moment does not add anything on top of assembler. If it is only providing...
2020 Feb 04
2
RFC: Add a preprocessor to yaml2obj (and other YAML tools)
?The idea itself is indeed good. Regarding to escaping: I think we should have it. Imagine the following example (I've took it from D73828). --- !ELF FileHeader: Class: ELFCLASS[[BITS]] Data: ELFDATA2LSB Type: ET_EXEC Machine: EM_386 # RUN: yaml2obj %s --docnum=4 -D BITS=32 -o %t-32bit.o # RUN: yaml2obj %s --docnum=4 -D BITS=64 -o %t-64bit.o Without escaping it would be: Class: ELFCLASSBITS What does not look so clear as a version with escaping IMO. Best regards, George | Developer | Access Softek, Inc ________________________________ О...
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
...> > I'd be inclined to go with the string in the source file approach. It > keeps the whole test localised to one place, making it easier to > understand what the test is actually testing. > > Also, I'm not sure that I can create an object without invoking > yaml2obj itself, I can't seem to find a function to do this exposed > by libObjectYAML. > > > It looks to me like you'd need to move big chunks of code out of the > yaml2obj tool into the ObjectYAML library. The Minidump version was > added quite recently, and took the appr...
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
...ld you recommend that I do what is done in unittest/ObjectYAML/MinidumpYAMLTest.cpp which just uses a string inside the source file, or use an Inputs directory? Both are not great, as you point out about using an Inputs directory. Also, I'm not sure that I can create an object without invoking yaml2obj itself, I can't seem to find a function to do this exposed by libObjectYAML. If I do need to invoke yaml2obj, would you happen to know how to tell CMake to build yaml2obj first, and also where would I find that executable? Thanks so much, James. On Mon, Jun 24, 2019 at 5:19 AM James Henderson...
2015 Apr 29
3
[LLVMdev] RFC: Machine Level IR text-based serialization format
...gt; is very important if we are to have any chance of applying fuzz testing to > the backend pieces; after all, testability is a huge motivation for this > work. > > As a concrete example, a file solely containing '%' crashes the yaml > parser: > $ ~/llvm/Debug+Asserts/bin/yaml2obj -format=coff t.yaml > yaml2obj: ~/llvm/src/lib/Support/YAMLTraits.cpp:78: bool > llvm::yaml::Input::setCurrentDocument(): Assertion `Strm->failed() && "Root > is NULL iff parsing failed"' failed. > 0 yaml2obj 0x000000000048682e > 1 yaml2obj 0x...
2020 Mar 04
5
yaml2obj support for COFF debug directories
Spoiler: the following only applies to Windows binary format handling. Potential for extending yaml2obj to support COFF debug directories<https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#debug-directory-image-only> recently came up during a code review<https://reviews.llvm.org/D70606#1873185>. Currently, its COFF syntax<http://llvm.org/docs/yaml2obj.html#coff-syntax> a...
2012 Sep 21
2
[LLVMdev] yaml2obj.rst where to link? (Sphinx warns)
Also, why does it say yaml2py?: yaml2obj takes a YAML description of an object file and converts it to a binary file. $ yaml2py input-file .. program:: yaml2py --Sean Silva On Thu, Sep 20, 2012 at 4:59 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > On Wed, Sep 19, 2012 at 8:25 PM, Sean Silva <silvas at purdue....
2014 Mar 31
2
[LLVMdev] [yaml2obj] ELF relocation support
Hi, As far as I understand now it is impossible to generate ELF object file with relocation sections using yaml2obj tool. I plan to support ELF relocations in the yaml2obj. Does anybody work on it already or plan to start this task soon? -- Simon Atanasyan
2017 Nov 01
2
elf2yaml document structure, for dynamic symbols
> I wonder why you want to add the new feature to yaml2obj. Maybe, explaining your motivation would help others understand your problem. Thanks for the cue! I am using yaml2obj to generate stub dynamic libraries. On Wed, Nov 1, 2017 at 11:29 AM, Rui Ueyama <ruiu at google.com> wrote: > I don't have a strong opinion on this. yaml2obj was the...
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
2015 Apr 28
3
[LLVMdev] RFC: Machine Level IR text-based serialization format
2015-04-28 10:14 GMT-07:00 Quentin Colombet <qcolombet at apple.com>: > Hi Alex, > > Thanks for working on this. > > Personally I would rather not have to write YAML inputs but instead resort > on the what the machine dumps look like. That being said, I can live with > YAML :). > > More importantly, how do you plan to report syntax errors to the users? > Things
2012 Sep 20
2
[LLVMdev] yaml2obj.rst where to link? (Sphinx warns)
Sphinx warns that yaml2obj isn't included into any toctree. Where is a logical place to link this? --Sean Silva
2012 Sep 21
0
[LLVMdev] yaml2obj.rst where to link? (Sphinx warns)
On Thu, Sep 20, 2012 at 7:34 PM, Sean Silva <silvas at purdue.edu> wrote: > Also, why does it say yaml2py?: > > yaml2obj takes a YAML description of an object file and converts it to a binary > file. > > $ yaml2py input-file > > .. program:: yaml2py > > --Sean Silva > Oops. Well, yaml kinda looks like Python... Feel free to fix that. - Michael Spencer > On Thu, Sep 20, 2012 at 4:59...
2020 Mar 31
3
[yaml2obj] GSoC-20: Add DWARF support to yaml2obj
...ng able to generate "incorrect" > dwarf -- I'm perfectly happy to continue to write the latter in > assembly, but there is a lot that could be improved about the experience > of writing "correct" dwarf. Ideally, I'd have a mode where I can just Do we think that yaml2obj is the best format for this, or would high-level DWARF DIE assembler directives be a more useful abstraction level? If you think about the .loc directive, there is actually some prior art in assembler. -- adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: <h...
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 ot...
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>...
2012 Sep 20
0
[LLVMdev] yaml2obj.rst where to link? (Sphinx warns)
On Wed, Sep 19, 2012 at 8:25 PM, Sean Silva <silvas at purdue.edu> wrote: > Sphinx warns that yaml2obj isn't included into any toctree. Where is a > logical place to link this? > > --Sean Silva No idea, which is why it's not linked :P. Add it anywhere you feel makes sense. - Michael Spencer