Displaying 20 results from an estimated 10000 matches similar to: "Transfer information IR to binary"
2016 Feb 22
2
Transfer information IR to binary
I will try to explain better what I do.
The main goal behind this is to verify that a part of code is not modified by someone else (it is an integrity check).
To do this, I create in IR a function who take 2 parameters, a begin and an end value.
This function perform an hash over the code area (from begin to end) and return it.
At first, I don’t know the addresses and the hash value so I put
2016 Feb 22
2
Transfer information IR to binary
HI Mats,
> On 22 Feb 2016, at 16:48, mats petersson <mats at planetcatfish.com> wrote:
>
> And you want this for only SOME bits of code, and that's why you need to have the IR report what sections are "sensitive"?
Exactly and I want to chose this once the compilation is over.
> It would be fairly easy if the code you want to check is a normal functions, just
2016 Jan 22
2
Testing an LLVM pass
Hi all,
I’m currently writing an LLVM function pass and I want to know how can I test it?
Currently, I try to compile some crypto library and check if the test suite are working but I don’t think this is very efficient.
Does anyone has a leads?
Greetings,
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
2015 Jul 17
3
[LLVMdev] LLVM instrumentation
Yeah I have already see pintool but I need this to work with ARM and Intel.
If I remember correctly, pintool does not work on ARM (or quite bad).
My goal with the instrumentation is, once I have the information (time + call), to choose (during a second compilation) if some of my passes are applicable or not.
Greetings,
Johan
On 17 Jul 2015, at 16:09, Kenneth Adam Miller <kennethadammiller
2015 Jul 17
2
[LLVMdev] LLVM instrumentation
The PGO was my first guess but I can get a lot of information.
At first, I follow the explanation at http://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation but instead of llvm-profdata merge, I used llvm-profdata show *.profraw.
Sadly, the information I get is the total number of function, the maximum function count and the maximum internal block count.
Do you know if you
2015 Jul 15
2
[LLVMdev] SymbolRef and getSize
Hi everyone,
I’m currently playing with the clang driver and I encounter a strange bug.
It occurs when I used the getSize function from the SymbolRef class.
On iOS, the number returned is not always correct (some function have the right size).
Sadly,
This is my code (at the end of the main function into driver.cpp) :
####
ErrorOr<OwningBinary<Binary>> BinaryOrErr =
2015 Jun 05
2
[LLVMdev] LLVM-ar and openssl
Hi everyone,
I encountered a strange bug when I tried to compile openssl (https://www.openssl.org/) with clang and llvm-ar on a 64-bit OS X.
I changed the openssl makefile to use llvm-ar instead of simply ar.
Openssl will then create two static libraries libssl.a and libcrypto.a.
The problem occurs when it tries to link these two static libraries to the final openssl executable.
I get the
2016 Aug 24
2
Change GlobalValue Type/Initializer
Hi Mehdi,
Thank you for you answer.
> Yes it is normal you *have* to use the same context to manipulate IR inside a Module. The context owns the module and destroying the context destroys everything that is created in the context. It is not clear to me what other context you could even manage to use here conceptually.
Actually I was using llvm::getGlobalContext() in order to get the context.
2015 Jul 17
2
[LLVMdev] LLVM instrumentation
Hi everyone,
I would like to instrument my code in order to know the number of times a function is called and its execution time.
After some research, I find several leads in llvm/lib/ProfilData/ and llvm/lib/Transform/Instrumentation/ but nothing conclusive.
Does anyone know if this is already possible with LLVM or has a good suggestion for the beginning?
I saw the -fprofile-instr-generate,
2016 Jun 20
2
llvm-bjdump and ELF-ARM/Thumb
The standard objdump does not recognised the format.
It works if I used an arm-linux-androideabi-objdump from the Android ndk but I am using the clang API to read binary inside my soft.
This is why I was only working with llvm-objdump.
> On 19 Jun 2016, at 15:03, Bruce Hoult <bruce at hoult.org> wrote:
>
> What happens if you use the standard bunutils objdump e.g. from macports
2015 Jun 08
3
[LLVMdev] Publication -- LLVM-Obfuscator - Software Protection for the Masses
Dear LLVM developers,
Here is a quick message announcing yet another academic publication leveraging on LLVM:
@INPROCEEDINGS{ieeespro2015-JunodRWM,
author={Pascal Junod and Julien Rinaldini and Johan Wehrli and Julie Michielin},
booktitle={Proceedings of the {IEEE/ACM} 1st International Workshop on Software Protection, {SPRO'15}, Firenze, Italy, May 19th, 2015},
editor = {Brecht
2016 Aug 24
2
Change GlobalValue Type/Initializer
Hi,
I am trying to update the initializer of a global value and I have encounter two issues:
The first one is that I can not change the type of the global value. Let say that I have the following variable: @.str = private unnamed_addr constant [6 x i8] c”Test0A\00", align 1
How can I change the ”Test0A\00” to ”OtherTest0A\00”. Is this possible? I know that you can change the initializer
2016 Oct 11
2
iOS Parsing Error
Hi,
When compiling mumble-iphone from https://github.com/mumble-voip/mumble-iphoneos <https://github.com/mumble-voip/mumble-iphoneos> I had a parser error on the file CodeOutputStream.m (form https://github.com/booyah/protobuf-objc/tree/696b7b61cdd4e8d77c55ace98b3119194fa04b7f <https://github.com/booyah/protobuf-objc/tree/696b7b61cdd4e8d77c55ace98b3119194fa04b7f>).
I know that the
2016 Jun 19
2
llvm-bjdump and ELF-ARM/Thumb
Hi Everyone,
When I used llvm-objdump to disassemble an ELF armv7 or thumb I have this error message:
llvm-objdump: warning: invalid instruction encoding
This message appears directly into the output and the output is mostly wrong (the invalid instruction create a shift in the addresses) :
1a6d: ff 2f e1 08 stmeq r1!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, sp} ^
1a71: 30
2016 Sep 28
2
GlobalVariable Recursive loop
Hi,
I have implemented a recursive loop to go through all the user of a global variable but I have one issue left.
Depending the code, the global variable is using itself:
@sSelectedAccount = internal constant %struct.KVObserver { %0* bitcast (%struct.__NSConstantString_tag* @_unnamed_cfstring_.744 to %0*), i8* bitcast (%struct.KVObserver* @sSelectedAccount to i8*), i32 3 }, align 4
With the
2016 Jul 29
2
Gauging interest in generating PDBs from LLVM-backed languages
On Wed, Jul 27, 2016 at 12:06 AM, Johan Wehrli <johan.wehrli at strong.codes>
wrote:
>
> Most of the time, it is a path problem:
> https://support.microsoft.com/en-us/kb/3035999
>
> If you open the file cmake/config-ix.cmake you will find the place where
> cmake check if the DIA_SDK is present (there is also a note saying that
> sometime this is a Windows bug).
>
>
2016 Oct 11
2
Landing Pad bug?
HI,
When compiling the open-source software cryptopp (https://www.cryptopp.com/#download <https://www.cryptopp.com/#download>) version 5.6.4 I found a strange issue with the IR generated.
The issue only appears when compiling with -O2 optimisation in the integer.cpp file (the function is _ZN8CryptoPPrsERNSt3__113basic_istreamIcNS0_11char_traitsIcEEEERNS_7IntegerE ->
2016 Jul 27
3
Gauging interest in generating PDBs from LLVM-backed languages
On Tue, Jul 26, 2016 at 12:30 PM, Zachary Turner <zturner at google.com> wrote:
> I wrote most of the pdb code in llvm so far. As Reid suggested, if you
> look in DebugInfo/PDB/Raw there is a significant amount of code dealing
> with msf files and raw pdb streams. If you build the llvm-pdbdump tool you
> can run it with the "raw" subcommand to dump lots of low level
2016 Jul 27
0
Gauging interest in generating PDBs from LLVM-backed languages
Hi Mike,
> I'll check into that again. I ran across llvm-pdbdump earlier but couldn't get it to build on a vanilla 3.8 install (CMake is convinced I don't have the DIA SDK and I haven't found a way to change its mind).
I have experienced something similar with the DIA SDK.
Most of the time, it is a path problem: https://support.microsoft.com/en-us/kb/3035999
2017 Jul 21
2
Will libFuzzer be part of future release binary packages?
Hi all,
Will libFuzzer be part of the release pre-built binaries at
http://releases.llvm.org/ in the future?
Thanks,
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170721/91c6cffe/attachment.html>