Displaying 20 results from an estimated 1000 matches similar to: "How to run single compiler-rt test in monorepo?"
2020 Feb 03
2
ASAN not finding any bugs?
Hello,
I am building sanitizers for our different platforms and trying to use
it in an example program, but while it seems like ASAN is running it's
init functions (see stdout below with ASAN_OPTIONS=verbosity=1) it
never catches anything in the program. This is LLVM 8.0.1 btw.
I was using this small test case:
int main(int argc, char** argv) {
int *array = new int[100];
delete []
2020 Nov 12
1
Targeting old glibc
On Wed, Nov 11, 2020 at 10:37 PM Fāng-ruì Sòng <maskray at google.com> wrote:
> If you want to drop symbol versioning with llvm-objcopy:
>
> * llvm-objcopy -R .gnu.version -R .gnu.version_r in.so out.so
> * However, llvm-objcopy zeroes out the section content so at runtime glibc ld.so will error
> "unsupported version 0 of Verneed record".
> Thus we need to
2020 Feb 03
2
ASAN not finding any bugs?
Hello Alex,
Thanks for the hint. It was actually not the -O flag that created the
problem. But it pointed me in the right direction, when I passed
-fno-experimental-new-pass-manager it started to show the error. My
guess is that the new pass manager is more aggressive in removing UB?
Thanks,
Tobias
On Mon, Feb 3, 2020 at 5:29 PM Alex Brachet-Mialot
<alexbrachetmialot at gmail.com> wrote:
2019 Nov 15
2
Commit history duplicated, seeing weird diffusion activity (Was: [Diffusion] rG67c416dc9a5a: [DebugInfo] Allow spill slots in call site parameter descriptions)
I just got a Diffusion notification about a change of mine being reverted by Fangrui, but I'm not sure that'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
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,
Xing
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
On 25/06/2019 11:24, James Henderson via llvm-dev wrote:
> Hi Alex,
>
> Would 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
>
>
> I'd be inclined to go with the
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
# RUN: yaml2obj -D BITS=32 -D ENCODE=MSB %s -o %t.32le
# RUN: yaml2obj
2019 Jun 25
2
[CMake] External File Dependencies for Unit Tests
Thanks James!
Thanks for the help. I certainly see your point.
> In either case, if you wanted to change the test input, you'd need to
rerun CMake again
This is unfortunate, I would have hoped I could have CMake create
$(wildcard *.yaml) type of output in the make files. But it sounds like
this doesn't exist on make alternatives, so this wont work.
There is actually a function to get
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
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 29
3
[LLVMdev] RFC: Machine Level IR text-based serialization format
On Tue, Apr 28, 2015 at 3:51 PM, David Majnemer <david.majnemer at gmail.com>
wrote:
> I love the idea of having some sort of textual representation. My only
> concern is that our YAML parser is not very actively maintained (is there
> someone expert with its implementation *and* active in the project?) and
> (IMHO) over-engineered when compared to the simplicity of our custom
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
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
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 there when I joined to
> the project,
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.
2017 Nov 01
2
elf2yaml document structure, for dynamic symbols
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 simplest thing to do would be to mirror
this structure to a DynamicSymbols
2019 Jun 22
2
[CMake] External File Dependencies for Unit Tests
Hi,
I want to write unit tests for a project I am working on. I need to create
object files, preferably I want to have yaml files in the source tree and
have cmake generate object files using yaml2obj. Does anyone know what I
would put in the CMakeLists.txt to get this behavior?
For a concrete example if I didn’t explain clearly:
In llvm/unittests/Object I would maybe have an Inputs directory,
2015 Apr 20
2
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
Nothing wrong with going ahead with a temporary measure if the temporary
measure is reasonable (besides the discussion if checking in binary files
is desirable). Even if you plan to add a test written in YAML, it's better
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
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.edu> wrote:
>> Sphinx warns that yaml2obj
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