Displaying 20 results from an estimated 1300 matches similar to: "Custom Binary Format Challenges"
2018 Apr 01
2
Custom Binary Format Challenges
Thank you so much!
What about discovering the instruction pointer value?
Also, does anybody know how to embed an artifact as a resource in a binary?
I'd like to have two text sections, and have one copied in from another
binary.
On Sun, Apr 1, 2018 at 2:15 PM, Brenda So <sogun3 at gmail.com> wrote:
> Hi,
>
> You can write it as if you are writing an optimization pass:
>
2018 Apr 01
2
Custom Binary Format Challenges
Program counter - EIP, RIP for x86/64. I need to obtain it and pass it as
an argument to the function that calculates an ordinal from it.
I think that there must be some way to use the bitcode language to place
byte values at a designated offset. Or use the command line to specify the
section and offset for the data.
On Sun, Apr 1, 2018 at 6:00 PM, Brenda So <sogun3 at gmail.com> wrote:
2018 Apr 01
0
Custom Binary Format Challenges
Hi,
You can write it as if you are writing an optimization pass:
http://llvm.org/docs/ProgrammersManual.html
It sounds like your highest level is a module, hence you should write a
module pass. There is example code on LLVM Programmer's Manual on how to do
a function pass:
Function* targetFunc = ...;
class OurFunctionPass : public FunctionPass {
public:
OurFunctionPass():
2018 Apr 01
0
Custom Binary Format Challenges
Hi Kenneth,
Can you elaborate what you mean by instruction pointer value? Like the
actual instruction with opcode and operands? With the sample code that I
showed you, the instrucrtion pointer in the innermost for loop will have
access to the following functions:
http://llvm.org/doxygen/classllvm_1_1Instruction.html
Alternatively, you can use the dump() operation to dump the instructions
out.
2018 Apr 02
0
Custom Binary Format Challenges
If you can write what you want to output in C with asm statements, clang
can show you what the IR should look like.
On Mon, Apr 2, 2018 at 7:35 AM, Kenneth Adam Miller via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Program counter - EIP, RIP for x86/64. I need to obtain it and pass it as
> an argument to the function that calculates an ordinal from it.
>
> I think that
2018 Apr 02
1
Custom Binary Format Challenges
The bitcode is only a representation of the IR, which is in SSA form. And
SSA form assumes an infinite amount of registers, which is not offered by
x86. When bitcode gets assembled/compiled to machine language, it breaks
down the SSA form into non-SSA format. Personally I don't know how to use
bitcode language to achieve what you want to do.
The closest thing I can think of is the llvm-MC
2002 Sep 16
1
[LLVMdev] questions about llvm
Hi, I have some basic questions. I'd appreciate if you can
help me with them.
1. In the LLVM programmer manual, section "Finding call sites:
a slightly more complex example", there is such piece of code:
-------------------------------------------------
class OurFunctionPass : public FunctionPass {
public:
OurFunctionPass(): callCounter(0) { }
virtual
2018 Aug 16
2
Convert Function Pointer Call to Function Call at the IR Level
Hi,
I want to convert a function pointer call in the IR of MPlayer to a
function call. For example, I have the following line:
...
%10 = tail call i32 %7(%struct.demuxer* nonnull %0, i32 %1, i8* %2) #7,
!dbg !863222
...
I want to set the target which is stored in %7 to a real function called
"demux_lavf_control()" with the following definition:
...
define internal i32
2018 Jan 04
3
LLVM IR Debugger
Hi
I am looking at open projects that LLVM want to implement and it seems to
be a suggestion to write an LLVM IR level debugger. Is there any existing
LLVM projects out there that already does such a thing? If not, I would
like to try implementing one myself.
By debugger, I think it means something like gdb, where you can insert
breakpoints, run code and observe layout of registers and memory at
2018 Jan 04
0
LLVM IR Debugger
You can attach debug info to the Llvm module about LLVM IR, at which point
one can throw the executable into any debugger and get llvm level debugging.
I've started a patch to revive this feature (DebugIR pass). I've been
sidetracked the past month, but I'll come back to it soon :)
https://reviews.llvm.org/D40778
Cheers,
Siddharth
On Thu 4 Jan, 2018, 09:23 Brenda So via llvm-dev,
2009 Apr 02
2
Method to permit ssh while denying sftp
Is there a way to permit ssh sessions while denying sftp with openssh
3.8?
In openssh 4.4+ this is possible using the Match directive with Force
Command but I don't know how to configure this in older versions.
Thanks in advance for any guidance.
Brenda
2018 Apr 16
2
Question concerning llvm::BlockAddress class
Hi all,
I have a question concerning block address class in LLVM. I am currently
working on a project where I need to obtain and manipulate basic block
virtual addresses. I was searching the web and found the llvm::BlockAddress
class (http://llvm.org/doxygen/classllvm_1_1BlockAddress.html). With this
class I was able to obtain a printout like this:
i8* blockaddress(@func_name, %bb_label)
How do
2018 Mar 15
1
[GSoC 2018] Integrate with Z3 SMT solver to reduce false positives.
Hi all,
I am a fourth year EE bachelors student who is very interested in
compilers. I have taken the only compilers course offered in my school and
did an independent study with my CS professor. Although I'll begin to work
in a couple of months, I definitely want to pursue my interest in compiler
design and optimization as a PhD in the future. I am very interested in the
z3 SMT solver
2006 Dec 20
1
Concerning IP over ATM & IP over Ethernet.
Hi there.I''m Brenda from the Australia,I wanna work on a project relating to
VOIP QoS.I wanna evaluate IP over ATM against IP over Ethernet on the
following parameters relating to voice and video traffic;
bandwidth consumption
packet loss
packet delay(latency)
jitter
traffic thoroughput
Is this project feasible?Can I use NS to simulate the models?I hope you
reply.Thanks.
Best regards.
2010 May 07
3
Getting presence working in 1.6.2
I am running asterisk 1.6.2.6 and have configured hints for our
extensions and have a couple of Aastra 6755i test phones. The phones
register fine but 'core show hints' shows the lines as idle even if they
are in use.
I read the wiki and see mention about needing to set call-limit in
asterisk 1.4 but that has been depreciated in 1.6 so what is the way it
should be done in 1.6?
2018 Apr 16
0
Question concerning llvm::BlockAddress class
On Mon, Apr 16, 2018 at 04:14:03PM -0400, Brenda So via llvm-dev wrote:
> Hi all,
>
> I have a question concerning block address class in LLVM. I am currently
> working on a project where I need to obtain and manipulate basic block virtual
> addresses. I was searching the web and found the llvm::BlockAddress class (
> http://llvm.org/doxygen/classllvm_1_1BlockAddress.html). With
2006 Sep 25
2
[LLVMdev] Name of Function's original module during link-time optimization
Hi,
Op 25-sep-06, om 23:26 heeft Chris Lattner het volgende geschreven:
> On Mon, 25 Sep 2006, Bram Adams wrote:
>> Haven't tried them extensively yet, so I'm
>> wondering whether the remark in your mail of 09/04/2006 to Nikhil
>> Patil about
>> "-g currently disables many optimizations" still holds.
>
> Yes, that is true. What are you trying
2009 Dec 12
3
DEVICE_STATE
Hi all!
I am trying to figure out how DEVICE_STATE is working, no luck so far.
sip.conf
[0317998975]
type=friend
regexten=0317998975
secret=????
username=0317998975
callerid="Magnus Benngard"
mailbox=0317998975 at inputinterior.se
host=dynamic
canreinvite=yes
dtmfmode=rfc2833
nat=yes
disallow=all
allow=alaw
extensions.conf
exten => 0317998975,hint,SIP/0317998975
exten =>
2006 Sep 25
0
[LLVMdev] Name of Function's original module during link-time optimization
On Mon, 25 Sep 2006, Bram Adams wrote:
> Op 25-sep-06, om 20:07 heeft Chris Lattner het volgende geschreven:
>> What are you trying to accomplish? Why not use location records from
>> debug info?
>
> You mean the debugging intrinsics? Just discovered them :-), and I guess
> that's exactly what I need. Haven't tried them extensively yet, so I'm
>
2018 Jan 04
2
LLVM IR Debugger
interesting ... just curious, why did they delete "-debug-ir" to begin with
?
Also, it's extremely interesting that gdb and lldb can be used to debug
LLVM IR. How does your code work (on a high level)? A high level
explanation will help me understand what you've done better.
>From first glance, my idea is slight different because your code interfaces
with gdb and lldb while