aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorLulu Cheng <chenglulu@loongson.cn>2024-01-26 10:46:51 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-02-02 09:16:15 +0800
commit5fbd80223e15520038b81f6cce8d3d30d93b3502 (patch)
treecf0bfa40548eda672b4ab9a38a365ec3603aca42 /gcc/go
parentfa972949d0f45696f95fe098232083ef37cccea1 (diff)
downloadgcc-5fbd80223e15520038b81f6cce8d3d30d93b3502.zip
gcc-5fbd80223e15520038b81f6cce8d3d30d93b3502.tar.gz
gcc-5fbd80223e15520038b81f6cce8d3d30d93b3502.tar.bz2
LoongArch: Enable explicit reloc for extreme TLS GD/LD with -mexplicit-relocs=auto.
Binutils does not support relaxation using four instructions to obtain symbol addresses gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_explicit_relocs_p): When the code model of the symbol is extreme and -mexplicit-relocs=auto, the macro instruction loading symbol address is not applicable. (loongarch_call_tls_get_addr): Adjust code. (loongarch_legitimize_tls_address): Likewise. gcc/testsuite/ChangeLog: * gcc.target/loongarch/explicit-relocs-extreme-auto-tls-ld-gd.c: New test. * gcc.target/loongarch/explicit-relocs-medium-auto-tls-ld-gd.c: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions