Results 1 to 4 of 4

Thread: __stdcall uses EAX?

  1. #1

    __stdcall uses EAX?

    ...since when a global function decorated with __stdcall can use EAX for passing a parameter??
    (i have found a __stdcall func(a,b,c,d) and its call moves 1 parameter in EAX, and push the other 3... )
    I want to know God's thoughts ...the rest are details.
    (A. Einstein)
    --------
    ..."a shellcode is a command you do at the linux shell"...

  2. #2
    Hi,

    I know this can be done with gcc. Maybe the program was compiled in an cygwin environment. Have a look here:

    http://gcc.gnu.org/onlinedocs/gccint/Register-Arguments.html

    I'm not sure if that's what you're looking for, but give it a go.

    Regards
    darkelf

  3. #3
    Quote Originally Posted by Maximus View Post
    ...since when a global function decorated with __stdcall can use EAX for passing a parameter??
    (i have found a __stdcall func(a,b,c,d) and its call moves 1 parameter in EAX, and push the other 3... )
    Lemme guess, LTCG is on?

  4. #4
    damn you guessed right ^^

    what leaves me without words is - if I **decorate** explicitly a function, it means that i want it that way.

    I am very tired to fight the linker internals...
    I want to know God's thoughts ...the rest are details.
    (A. Einstein)
    --------
    ..."a shellcode is a command you do at the linux shell"...

Similar Threads

  1. indirect __stdcall function
    By BanMe in forum Advanced Reversing and Programming
    Replies: 1
    Last Post: July 8th, 2009, 15:04
  2. Win32 calling conventions: __stdcall in assembler
    By Nynaeve in forum Blogs Forum
    Replies: 0
    Last Post: April 22nd, 2008, 22:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •