我有以下汇编代码
.machine power8
.abiversion 2
.section ".toc","aw"
.section .text
GLOBAL(myfunc)
myfunc:
stdu 1,-240(1)
mflr 0
std 0, 0*8(1)
mfcr 8
std 8, 1*8(1)
std 2, 2*8(1)
# Save all non-volatile registers R14-R31
std 14, 4*8(1)
...
# Save all the non-volatile FPRs
...
stwu 1, -48(1)
bl function_call
nop
addi 1, 1, 48
ld 0, 0*8(1)
mtlr 0
ld 8, 1*8(1)
ld 2, 2*8(1)
...
# epilogue, restore stack frame这在静态构建中工作得很好,但共享构建在00000157.plt_call.__tls_get_addr_opt@@GLIBC_2.22中存在分段错误,在power8 w.r.tTOC中共享构建是否应该以不同的方式处理?
https://stackoverflow.com/questions/41453067
复制相似问题