我有以下内联汇编代码。但是当我尝试编译它时,它会抛出下面代码片段后面提到的错误。
以下是错误信息。
unsigned int func(void)
{
__asm__ ("mfspr r3, svr;");
}
以下是错误信息。
{standard input}: Assembler messages:
{standard input}:3349: Error: unsupported relocation against r3
{standard input}:3349: Error: unsupported relocation against svr
{standard input}:3375: Error: unsupported relocation against r3
{standard input}:3375: Error: unsupported relocation against svr
{standard input}:3510: Error: unsupported relocation against r3
{standard input}:3510: Error: unsupported relocation against svr
{standard input}:3517: Error: unsupported relocation against r3
{standard input}:3517: Error: unsupported relocation against svr
有人能帮我修复这些吗?