llvm / llvm/llvm-project

Ability to suppress "invalid local symbol" errors

Open
#217,333 3 comments 0 reactions 0 assignees View on GitHub
lld:ELF
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

It used to be a warning and became an error in https://github.com/llvm/llvm-project/commit/3ac94280245415be66cb1b603367c5f4f6d498e7

Shared objects are not always in the developers control so there should be at least a way to ignore these errors.
Since it was a warning before there should be a way to complete the linker process successfully, maybe there is a flag already or one could be implemented?

Related: https://github.com/rust-lang/rust/issues/128938

Contributor guide

Open the contributing guide

Research direction

Start with commit 3ac94280245415be66cb1b603367c5f4f6d498e7 and trace how the linker reports "invalid local symbol" errors, comparing that behavior with the earlier warning behavior. Review the related Rust issue for compatibility context. Done means developers can explicitly complete linking successfully when these diagnostics come from shared objects.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.