Subversion Repositories Kolibri OS

Rev

Rev 6391 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6391 ashmew2 1
USE .section '.init' code for writing loader asm C mixed code (in FASM)
2
Got to know this by checking out the linker script on KGCC. -Xlinker -verbose .
3
Inside the .text section that is being assembled, the .init is placed at the very beginning.
4
Let the macros expand, GCC simply places .init on the top and therefore it works.
5
 
6
Inexplicable errors if .init is not used and .text or .flat is used... Took 4 hours to figure out.