title: use gcc to directly compile to machine code without linking
body: <p>i want to get gcc to compile c-code for me into x86-32 linux binary code, but without any librarys or so around it.
  I just want to specify an address at the start, and it should assume it has been loaded there. I will then manually build an elf file from the output by hand and set up everything.</p>
  
  <p>I know how to do something like this using NASM, but i have something more complicated in mind where i don't want to use only assembler. I dont need any librarys, i will use pure syscalls with inline asm. I also do not care much if it looses some portability.</p>
  
  <p>I tried around a bit, but could not find a way to do that.
  Can someone not only provide me with the correct settings for that, but also some background on the compile and linker parameters?
  I tried searching through the gcc manual, but found it very confusing.</p>