kolibrios-fun/contrib/C_Layer/EXAMPLE/libguic_kolibri/quirks
Serhii Sakhno 38cd3c4ee4 C Layer: new project structure
git-svn-id: svn://kolibrios.org@6456 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-06-30 16:05:59 +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.