diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2024-01-26 10:46:51 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2024-02-02 09:16:15 +0800 |
commit | 5fbd80223e15520038b81f6cce8d3d30d93b3502 (patch) | |
tree | cf0bfa40548eda672b4ab9a38a365ec3603aca42 /gcc/go | |
parent | fa972949d0f45696f95fe098232083ef37cccea1 (diff) | |
download | gcc-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