9
0
Fork 0

init: add section for early code

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2008-08-12 17:10:49 +02:00
parent e90e319aeb
commit bbee767a01
2 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,7 @@ SECTIONS
_stext = .;
_text = .;
*(.text_entry*)
*(.text_bare_init*)
*(.text*)
}

View File

@ -15,5 +15,14 @@ typedef int (*initcall_t)(void);
#define device_initcall(fn) __define_initcall("5",fn,5)
#define late_initcall(fn) __define_initcall("6",fn,6)
/* section for code used very early when
* - we're not running from where we linked at
* - bss not cleared
* - static variables not initialized
*
* Mainly useful for booting from NAND Controllers
*/
#define __bare_init __section(.text_bare_init.text)
#endif /* _INIT_H */