Speify address for a function while compiling

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

 



Hi,

I am working on security topics, and I need to write a C file that has only
one function in it (without the main routine). I need to compile it.
Normally the compilation commands for it would be 
gcc -c blank.c -o blank.o 
This crates a .o file starting at address 0 with just the single routine
inside the .o file. My question is whether I can make the routine be given a
specific address, say for example 8048000 instead of starting at location 0. 
Thanks in advance. 
-- 
View this message in context: http://www.nabble.com/Speify-address-for-a-function-while-compiling-tp20530154p20530154.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[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