dontKnowYet
March 19th, 2009, 00:47
Hi,
I'd like to generate a position independent flat binary file using c, not asm. I got some basic dummy code working but when adding more than one function gcc (which I could replace with something else btw.) needs a _GLOBAL_OFFSET_TABLE_. Is there a way to avoid this?
I only found examples that were not position independent but linked to a fixed address online like bootsectors/booloaders in c.
Any ideas?
Thanks for your help!
I'd like to generate a position independent flat binary file using c, not asm. I got some basic dummy code working but when adding more than one function gcc (which I could replace with something else btw.) needs a _GLOBAL_OFFSET_TABLE_. Is there a way to avoid this?
I only found examples that were not position independent but linked to a fixed address online like bootsectors/booloaders in c.
Any ideas?
Thanks for your help!