Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  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.
  7.