Re: Missing _restvr_20 and _savevr_20 subroutines for lib/raid6/altivec8.o
On Oct 19, 2013, at 5:24 PM, Ben Hutchings wrote:
> When building lib/raid6/altivec8.o with gcc 4.8 on Debian, the compiler
> is generating references to two new runtime subroutines which are
> apparently not included in the kernel:
> ERROR: "_restvr_20" [lib/raid6/raid6_pq.ko] undefined!
> ERROR: "_savevr_20" [lib/raid6/raid6_pq.ko] undefined!
> The save/restore subroutines are specified in
> and we do have the _restgpr_* and _savegpr_* subroutines in
> arch/powerpc/boot/crtsavres.S. I'm not sure whether these subroutines
> should be added or whether this indicates the compiler is doing
> something wrong.
> A configuration that triggers this is included below.
Try with CONFIG_CC_OPTIMIZE_FOR_SIZE=n. A feature was added to gcc for -Os to "outline" the save/restore routines. I'm surprised this hasn't shown up sooner.
Well need to add _restvr_* / _savevr_* to the version in lib/crtsaveres.S.