]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: The symbol got type can only be obtained after initialization
authorLulu Cai <cailulu@loongson.cn>
Fri, 19 Apr 2024 02:24:52 +0000 (10:24 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Thu, 24 Oct 2024 02:06:20 +0000 (10:06 +0800)
commit9055fbe5ffbbb8f7ea17d8e4c8ffdc0438038f67
treecca5f9ef3b19a7b2c3fbbb8dae2ffdf1e06c81b2
parent8a6764d35e5c15d78de8aef8f27af3eefd9d7544
LoongArch: The symbol got type can only be obtained after initialization

When scanning relocations and determining whether TLS type transition is
possible, it will try to obtain the symbol got type. If the symbol got
type record has not yet been allocated space and initialized, it will
cause ld to crash. So when uninitialized, the symbol is set to GOT_UNKNOWN.

(cherry picked from commit b221bff7c7ca20d961a7e6b663a545384054a5be)
bfd/elfnn-loongarch.c