Skip to contentSkip to conversation

Correct ELF section used for out of line spinlocks

PATCH Anton Blanchard 2 participants 2 messages Sep 5, 2004 Locking primitives

lore
Share & tools
lore
#0 lore raw

Hi,

The vmlinux.lds is using .lock.text but __lockfunc was using .spinlock.text.

Anton

include/linux/spinlock.h renamed from include/linux/spinlock.h~fix_outofline_spinlocks +1 -1
diff -puN include/linux/spinlock.h~fix_outofline_spinlocks include/linux/spinlock.h
@@ -38,7 +38,7 @@
 #ifdef CONFIG_SMP
 #include <asm/spinlock.h>
 
-#define __lockfunc fastcall __attribute__((section(".spinlock.text")))
+#define __lockfunc fastcall __attribute__((section(".lock.text")))
 
 int __lockfunc _spin_trylock(spinlock_t *lock);
 int __lockfunc _write_trylock(rwlock_t *lock);

_

#1 lore raw
Quoted 2 lines · Anton Blanchard

The vmlinux.lds is using .lock.text but __lockfunc was using .spinlock.text.

Thanks Anton, big booboo, i had changed the name of the section in the link scripts last minute (since it covered more than spinlocks).

Zwane