https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946
--- Comment #6 from Manoj Gupta ---
Thanks Jakub for the detailed information.
Fangrui has kindly provided a LLD fix at https://reviews.llvm.org/D95994
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946
--- Comment #2 from Manoj Gupta ---
Created attachment 50117
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50117&action=edit
dl-close.s file generated by GCC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946
--- Comment #1 from Manoj Gupta ---
For ease of search, the problem I think lies at Line 6957 of dl-close.s.
dl-close.s file line 6957:
.long .LC3@gotoff
It is part of .debug_info section and it has GOTOFF relocation
This matches the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946
Bug ID: 98946
Summary: GCC generating incorrect relocation R_386_GOTOFF in
.debug-info for x86 (32)
Product: gcc
Version: 10.2.1
Status: UNCONFIRMED
Severity: n