I'm compiling a driver for the sparc v9 platform (-xarch=v9).
When compiling the driver without optimization, the compiler generates code that needs an implementation of '__align_cpy_8'.
From what I've found, this is part of the 64 bits sparc ABI, and is available in /usr/lib/sparcv9/libc.so, but it doesn't make sense to use the libc implementation from the driver.
I haven't been able to find compiler switches that prevent the compiler from relying on the external implementation or kernel modules that provide an implementation.
What's the proper way to compile/link drivers in these circumstances?