]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Fixed ABI v1.00 TLS dynamic relocation generation bug
authorLulu Cai <cailulu@loongson.cn>
Thu, 5 Sep 2024 02:20:49 +0000 (10:20 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Thu, 5 Sep 2024 03:48:44 +0000 (11:48 +0800)
commit88327cbcd02807149450b42ded5949ae6ab845b7
tree04f6c7cb90a1f7b935732e47f73ab607a52e141a
parent9adad974918b4314e0c36b4fb5642bd14a2948fd
LoongArch: Fixed ABI v1.00 TLS dynamic relocation generation bug

Commit "b67a17aa7c0c478a" modified the logic of allocating dynamic
relocation space for TLS GD/IE, but only modified the logic of
generation dynamic relocations for TLS GD/IE in ABI v2.00. When
linking an object file of ABI v1.00 with bfd ld of ABI v2.00, it
will cause an assertion failure.

Modified the dynamic relocation generation logic of TLS GD/IE
in ABI v1.00 to be consistent with ABI v2.00.
bfd/elfnn-loongarch.c