kolibrios/contrib/C_Layer/libguic_kolibri/quirks
ashmew2 a7a5824cfe Add C Layer to SVN
git-svn-id: svn://kolibrios.org@6391 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-04-11 13:38:48 +00:00

7 lines
427 B
Plaintext

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