• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
assembly jmp to hard-coded address with gcc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assembly jmp to hard-coded address with gcc


  • Subject: assembly jmp to hard-coded address with gcc
  • From: Aron-Zvi <email@hidden>
  • Date: Wed, 12 Aug 2009 02:30:49 +0300

Hey guys,

I'm trying to compile the following program with gcc using -fasm-blocks on OS X:

asm void trampoline(void)
{
    push 0x66666666
    push 0x66666666
    jmp  0x66666666
}


gcc fails with "suffix or operands invalid for `jmp'".

The code will be copied into memory and the addresses will be fixed later on. How can I get the above to compile?


Thanks in advance,

Aron-Zvi

 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: assembly jmp to hard-coded address with gcc
      • From: Thierry bultel <email@hidden>
  • Prev by Date: Re: Loading Kernel Extension
  • Next by Date: Re: Loading Kernel Extension
  • Previous by thread: Re: Loading Kernel Extension
  • Next by thread: Re: assembly jmp to hard-coded address with gcc
  • Index(es):
    • Date
    • Thread