[PATCH] init: introduce __BARE_INIT for .section ".text_bare_init.text"
Sam Ravnborg
sam at ravnborg.org
Sun Sep 5 13:12:26 EDT 2010
> diff --git a/include/init.h b/include/init.h
> index 8692b68..5a7a5b6 100644
> --- a/include/init.h
> +++ b/include/init.h
> @@ -7,6 +7,10 @@
> #define __init
> #define __initdata
>
> +/* For assembly routines */
> +#define __BARE_INIT .section ".text_bare_init.text"
You should consider using:
#define __BARE_INIT .section ".text_bare_init.text","ax"
Then you do not rely on the as/ld to add these flags.
In the kernel we had a few cases where it mattered.
Sam
More information about the barebox
mailing list