Displaying 5 results from an estimated 5 matches for "createlinkerprivatetempsymbol".
2016 Jun 22
2
x86: How to Force 2-byte `jmp` instruction in lowering
...iews.llvm.org/D19904 I'm trying to spell the following
assembly:
.palign 2, 0x90
jmp +0x9
nopw 512(%rax,%rax,1)
// rest of the code
I try the following snippet to accomplish this:
OutStreamer->EmitLabel(CurSled);
OutStreamer->EmitCodeAlignment(4);
auto Target = OutContext.createLinkerPrivateTempSymbol();
// Use a two-byte `jmp`. This version of JMP takes an 8-bit relative
offset as
// an operand (computed as an offset from the jmp instruction).
OutStreamer->EmitInstruction(
MCInstBuilder(X86::JMP_1)
.addExpr(MCSymbolRefExpr::create(Target, OutContext)),
getSubtarg...
2016 Jun 22
3
x86: How to Force 2-byte `jmp` instruction in lowering
On Wed, Jun 22, 2016 at 6:05 AM Nirav Davé <niravd at google.com> wrote:
> This appears to work:
>
> auto Target = OutContext.createLinkerPrivateTempSymbol();
>
> with
>
> auto Target = OutContext.createTempSymbol();
>
> -Nirav
>
>
Thanks Nirav -- I tried this but I'm still getting a "jmpq <address>" with
this incantation when I load and disassemble from gdb. I'm seeing a
5-instruction jump, followed by...
2016 Jun 22
0
x86: How to Force 2-byte `jmp` instruction in lowering
...e symbol would make a difference.
-Nirav
On Wed, Jun 22, 2016 at 12:14 PM, Dean Michael Berris <dberris at google.com>
wrote:
> On Wed, Jun 22, 2016 at 6:05 AM Nirav Davé <niravd at google.com> wrote:
>
>> This appears to work:
>>
>> auto Target = OutContext.createLinkerPrivateTempSymbol();
>>
>> with
>>
>> auto Target = OutContext.createTempSymbol();
>>
>> -Nirav
>>
>>
> Thanks Nirav -- I tried this but I'm still getting a "jmpq <address>" with
> this incantation when I load and disassemble from gdb. I'm...
2016 Jun 22
2
x86: How to Force 2-byte `jmp` instruction in lowering
...>
>
> On Wed, Jun 22, 2016 at 12:14 PM, Dean Michael Berris <dberris at google.com>
> wrote:
>
>> On Wed, Jun 22, 2016 at 6:05 AM Nirav Davé <niravd at google.com> wrote:
>>
>>> This appears to work:
>>>
>>> auto Target = OutContext.createLinkerPrivateTempSymbol();
>>>
>>> with
>>>
>>> auto Target = OutContext.createTempSymbol();
>>>
>>> -Nirav
>>>
>>>
>> Thanks Nirav -- I tried this but I'm still getting a "jmpq <address>"
>> with this incantation when...
2016 Jun 22
0
x86: How to Force 2-byte `jmp` instruction in lowering
...2, 2016 at 12:14 PM, Dean Michael Berris <dberris at google.com
>> > wrote:
>>
>>> On Wed, Jun 22, 2016 at 6:05 AM Nirav Davé <niravd at google.com> wrote:
>>>
>>>> This appears to work:
>>>>
>>>> auto Target = OutContext.createLinkerPrivateTempSymbol();
>>>>
>>>> with
>>>>
>>>> auto Target = OutContext.createTempSymbol();
>>>>
>>>> -Nirav
>>>>
>>>>
>>> Thanks Nirav -- I tried this but I'm still getting a "jmpq <address>"...