https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98946
--- Comment #1 from Manoj Gupta <manojgupta at google dot com> --- 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 LLD complain: ld.lld: error: dl-close.c:(.debug_info+0x1E6A): has non-ABS relocation R_386_GOTOFF against symbol '.LC3