Skip to contentSkip to conversation

: Fix warning for changed section attributes

PATCH New Clemens Buchacher 1 participant 1 message Oct 8, 2004 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix warning for changed section attributes

This fixes the "Ignoring changed section attributes" warning by commenting out the attributes appended by gcc.

The previous 'fix' created a section '.text,#alloc' (literally), which I guess was not intended.

---

Runtime tested (Leon2 TSIM SPARC simulation)

 arch/sparc/kernel/init_task.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/sparc/kernel/init_task.c +1 -1
@@ -23,6 +23,6 @@
  * in etrap.S which assumes it.
  */
 union thread_union init_thread_union
-	__attribute__((section (".text,#alloc")))
+	__attribute__((section (".text\"\n\t#")))
 	__attribute__((aligned (THREAD_SIZE)))
 	= { INIT_THREAD_INFO(init_task) };