]> 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, 25 Apr 2024 01:21:19 +0000 (09:21 +0800)
commitb221bff7c7ca20d961a7e6b663a545384054a5be
tree9361adbb9a69bfac735f564f8ef34e60545cd92c
parent59462de44399d4db57fa12b75108caec578b816a
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.
bfd/elfnn-loongarch.c