dl-startup.h 533 B

12345678910111213141516171819
  1. /* Any assmbly language/system dependent hacks needed to setup boot1.c so it
  2. * will work as expected and cope with whatever platform specific wierdness is
  3. * needed for this architecture. */
  4. /* Overrive the default _dl_boot function, and replace it with a bit of asm.
  5. * Then call the real _dl_boot function, which is now named _dl_boot2. */
  6. asm("" \
  7. " .text\n" \
  8. " .globl _dl_boot\n" \
  9. "_dl_boot:\n" \
  10. " mr 3,1\n" \
  11. " li 4,0\n" \
  12. " addi 1,1,-16\n" \
  13. " stw 4,0(1)\n" \
  14. " bl _dl_boot2\n" \
  15. ".previous\n" \
  16. );