Re: Force GCC not to use relative addresses for asm-CALL-statements

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

 



On Sat, Jan 7, 2012 at 8:01 PM, augomat <augomat@xxxxxxxxx> wrote:
>
> hi!
>
> compiling an ordinary C programm, function-calls are (at least on my
> computer) translated to something like:
>
> E8 56070000         CALL <JMP.&msvcrt.printf>
>
> where the operand 1 (56070000) is of type: rel16/32
>
> can i force gcc to produce only CALLS (and jumps, ...) that have absolute
> addresses as their operands?
You need to bind the executable
(http://msdn.microsoft.com/en-us/magazine/cc301808.aspx). Visual
Studio includes a tool to do it from the command line. I'm not sure if
GCC offers a switch or GNU offers a tool to do it.

Jeff



[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