Recent tools are disregarding both the __asm__(".text") in init_task.c
and the alignment at the end of .text in head.S. Use attributes
instead.
jmpl %g1, %g0
nop
- /* This is to align init_thread_union properly, be careful. -DaveM */
- .align 8192
-
/* The code above should be at beginning and we have to take care about
* short jumps, as branching to .text.init section from .text is usually
* impossible */
* If this is not aligned on a 8k boundry, then you should change code
* in etrap.S which assumes it.
*/
-__asm__(".section \".text\",#alloc\n");
-union thread_union init_thread_union = { INIT_THREAD_INFO(init_task) };
+union thread_union init_thread_union
+ __attribute__((section (".text")))
+ __attribute__((aligned (THREAD_SIZE)))
+ = { INIT_THREAD_INFO(init_task) };