Re: Injecting user defined opcode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 30, 2019 at 05:42:28AM +0000, Mahmood Naderan wrote:
> #APP
> # 3 "test.c" 1
>         .byte 0x00
> # 0 "" 2
> #NO_APP
>         pop     rbp

> It seems that in the machine code generation, gcc combines 00 with the next instruction.

It doesn't.  It outputs your asm (".byte 0x00"), exactly as you told it.
The assembler processes that to some object file, again exactly as you
told it, which means it puts this 0 byte right in the middle of the
instructions.

Again: what did you *intend* to happen?


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux