Correct ELF section used for out of line spinlocks
Hi,
The vmlinux.lds is using .lock.text but __lockfunc was using .spinlock.text.
Anton
Signed-off-by Anton Blanchard <[email protected]>
include/linux/spinlock.h renamed from include/linux/spinlock.h~fix_outofline_spinlocks +1 -1
@@ -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);
_
Quoted 2 lines · Anton Blanchard
The
vmlinux.ldsis using .lock.text but__lockfuncwas 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