search for: binaryformat

Displaying 20 results from an estimated 24 matches for "binaryformat".

2018 Mar 21
4
CodeView layering
I'm looking at fixing some layering violations in LLVM & came across a few in the CodeView handling, specifically: lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers I guess MC could be made dependent on DebugInfoCodeView? But probably these things should be sunk into BinaryFormat as is the case for DWARF features used by MC? include/llvm/Object/COFF.h includes include/llvm/DebugInfo/CodeView/CVDebugRecord.h Also seems like this could/should/needs to be sunk into BinaryFormat? I'm open to ideas & happy to do the work, or help in any way that might be useful. Tha...
2018 Mar 26
2
CodeView layering
...violations in LLVM & came across a >> few in the CodeView handling, specifically: >> >> lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers >> I guess MC could be made dependent on DebugInfoCodeView? But probably >> these things should be sunk into BinaryFormat as is the case for DWARF >> features used by MC? >> > > I'd be OK with that. We could very easily introduce true link dependencies > on that library in the near future. > OK - added the LLVMBuild.txt change in r328595 > include/llvm/Object/COFF.h includes >>...
2018 Mar 29
2
CodeView layering
...gt;>>> few in the CodeView handling, specifically: >>>> >>>> lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers >>>> I guess MC could be made dependent on DebugInfoCodeView? But probably >>>> these things should be sunk into BinaryFormat as is the case for DWARF >>>> features used by MC? >>>> >>> >>> I'd be OK with that. We could very easily introduce true link >>> dependencies on that library in the near future. >>> >> >> OK - added the LLVMBuild.txt chang...
2018 Mar 29
0
CodeView layering
...amp; came across a >>> few in the CodeView handling, specifically: >>> >>> lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers >>> I guess MC could be made dependent on DebugInfoCodeView? But probably >>> these things should be sunk into BinaryFormat as is the case for DWARF >>> features used by MC? >>> >> >> I'd be OK with that. We could very easily introduce true link >> dependencies on that library in the near future. >> > > OK - added the LLVMBuild.txt change in r328595 > Hmm, not perf...
2018 Mar 30
0
CodeView layering
...few in the CodeView handling, specifically: >>>>> >>>>> lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers >>>>> I guess MC could be made dependent on DebugInfoCodeView? But >>>>> probably these things should be sunk into BinaryFormat as is the case for >>>>> DWARF features used by MC? >>>>> >>>> >>>> I'd be OK with that. We could very easily introduce true link >>>> dependencies on that library in the near future. >>>> >>> >>> OK...
2018 Mar 22
0
CodeView layering
...ixing some layering violations in LLVM & came across a few > in the CodeView handling, specifically: > > lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers > I guess MC could be made dependent on DebugInfoCodeView? But probably > these things should be sunk into BinaryFormat as is the case for DWARF > features used by MC? > I'd be OK with that. We could very easily introduce true link dependencies on that library in the near future. > include/llvm/Object/COFF.h includes > include/llvm/DebugInfo/CodeView/CVDebugRecord.h > Also seems like this cou...
2018 Mar 21
0
CodeView layering
Yes, some of the headers and stuff that are just raw structure definitions and enums could probably be sunk into BinaryFormat.. How'd you find this? Curious why it hasn't been breaking in modules builds for a long time. On Wed, Mar 21, 2018 at 11:31 AM David Blaikie <dblaikie at gmail.com> wrote: > I'm looking at fixing some layering violations in LLVM & came across a few > in the CodeView...
2018 Mar 21
2
CodeView layering
...build wouldn't fail - it knows nothing about .cpp modularity/grouping, just headers)) On Wed, Mar 21, 2018 at 11:42 AM Zachary Turner <zturner at google.com> wrote: > Yes, some of the headers and stuff that are just raw structure definitions > and enums could probably be sunk into BinaryFormat.. > > How'd you find this? Curious why it hasn't been breaking in modules > builds for a long time. > > On Wed, Mar 21, 2018 at 11:31 AM David Blaikie <dblaikie at gmail.com> wrote: > >> I'm looking at fixing some layering violations in LLVM & came acr...
2018 Apr 01
0
CodeView layering
...iew handling, specifically: >>>>>> >>>>>> lib/MC/MCCodeView includes several llvm/DebugInfo/CodeView headers >>>>>> I guess MC could be made dependent on DebugInfoCodeView? But >>>>>> probably these things should be sunk into BinaryFormat as is the case for >>>>>> DWARF features used by MC? >>>>>> >>>>> >>>>> I'd be OK with that. We could very easily introduce true link >>>>> dependencies on that library in the near future. >>>>> >...
2018 Mar 21
0
CodeView layering
...it knows nothing about .cpp modularity/grouping, just headers)) On Wed, Mar 21, 2018 at 11:42 AM Zachary Turner <zturner at google.com<mailto:zturner at google.com>> wrote: Yes, some of the headers and stuff that are just raw structure definitions and enums could probably be sunk into BinaryFormat.. How'd you find this? Curious why it hasn't been breaking in modules builds for a long time. On Wed, Mar 21, 2018 at 11:31 AM David Blaikie <dblaikie at gmail.com<mailto:dblaikie at gmail.com>> wrote: I'm looking at fixing some layering violations in LLVM & came acro...
2018 Mar 21
1
CodeView layering
...s nothing > about .cpp modularity/grouping, just headers)) > > > > On Wed, Mar 21, 2018 at 11:42 AM Zachary Turner <zturner at google.com> > wrote: > > Yes, some of the headers and stuff that are just raw structure definitions > and enums could probably be sunk into BinaryFormat.. > > > > How'd you find this? Curious why it hasn't been breaking in modules > builds for a long time. > > > > On Wed, Mar 21, 2018 at 11:31 AM David Blaikie <dblaikie at gmail.com> wrote: > > I'm looking at fixing some layering violations in LLV...
2020 Sep 18
2
Making library calls for obj2yaml functionalities
...Sep 17, 2020 at 12:33 AM James Henderson < jh7370.2008 at my.bristol.ac.uk> wrote: > Hi Rahman, > > Traditionally, the ability to read sections is 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'...
2018 Jul 10
2
custom LLVM Pass with options fails to load
...be9 (opt+0x686be9) Stack dump: 0. Program arguments: opt -load /home/maliusarth/projects/ext/projects/cmake/llvm/6.0.0/lib/TestPass.so -testPass test.cpp Aborted in my cmakelists.txt I have the following: set(CMAKE_BUILD_TYPE Debug) set(LLVM_LINK_COMPONENTS Core # narrowed it down to this BinaryFormat Support Demangle ) add_llvm_loadable_module( TestPass TestPass.cpp DEPENDS intrinsics_gen PLUGIN_TOOL opt ) in my cpp I have this: #include "llvm/IR/Constants.h" #include "llvm/IR/Function.h" #include "llvm/IR/Module.h" #include "llvm/IR/PassManager.h&q...
2020 Aug 11
2
Seeking help on LLD and extending ELF
Hi all, I am experimenting with extending ELF. I want to add a custom ELF section, something similar to a 'SyntheticSection'. However, I'm not able to find documentation / doxygen for LLD code. Are there any existing examples of adding custom ELF sections at link time in LLVM framework? Is it possible? Any pointers? Thanks in advance!Cheers! -------------- next part -------------- An
2017 Aug 04
2
Cross compiling C++ program
...e -- Found LLVM_CONFIG as /usr/local/bin/llvm-config -- Building with -fPIC -- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5") -- Clang version: 4.0.1 CMake Error at /usr/local/llvm40/lib/cmake/llvm/LLVM-Config.cmake:203 (message): Library `BinaryFormat' not found in list of llvm libraries. Call Stack (most recent call first): /usr/local/llvm40/lib/cmake/llvm/AddLLVM.cmake:508 (llvm_map_components_to_libnames) cmake/modules/AddClang.cmake:86 (llvm_add_library) lib/AST/CMakeLists.txt:6 (add_clang_library) -- Configuring incomplete, error...
2020 Sep 16
2
Making library calls for obj2yaml functionalities
Hi All, Following up on https://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
2018 Jul 12
2
custom LLVM Pass with options fails to load
...ke/llvm/6.0.0/lib/TestPass.so >> -testPass test.cpp >> Aborted >> >> >> in my cmakelists.txt I have the following: >> >> set(CMAKE_BUILD_TYPE Debug) >> >> set(LLVM_LINK_COMPONENTS >> Core # narrowed it down to this >> BinaryFormat >> Support >> Demangle >> ) >> >> add_llvm_loadable_module( TestPass >> TestPass.cpp >> >> DEPENDS >> intrinsics_gen >> PLUGIN_TOOL >> opt >> ) >> >> in my cpp...
2017 Aug 04
3
Cross compiling C++ program
...g > > -- Building with -fPIC > > -- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5") > > -- Clang version: 4.0.1 > > CMake Error at /usr/local/llvm40/lib/cmake/llvm/LLVM-Config.cmake:203 (message): > > Library `BinaryFormat' not found in list of llvm libraries. > > Call Stack (most recent call first): > > /usr/local/llvm40/lib/cmake/llvm/AddLLVM.cmake:508 (llvm_map_components_to_libnames) > > cmake/modules/AddClang.cmake:86 (llvm_add_library) > > lib/AST/CMakeLists.txt:6 (add_clang...
2020 Apr 08
3
Error with perf2bolt in LLVM BOLT
Hi, I was interested in trying out LLVM BOLT and generated profile data using Linux perf using the following: perf record -e cycles:u -o perf.data <command> This is without the use of LBR so I understand the performance improvements may not be much but this was more for becoming familiar with BOLT's commands. I then run: perf2bolt -nl -p perf.data -o perf.fdata <binary> and I
2018 May 23
0
Proposal for address-significance tables for --icf=safe
On Tue, May 22, 2018 at 6:06 PM Peter Collingbourne via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi all, > > Context: ld.gold has an --icf=safe flag which is intended to apply ICF > only to sections which can be safely merged according to the guarantees > provided by the language. It works using a set of heuristics (symbol name > matching and relocation scanning).