Skip to content

llvm-strip --discard-local rejects local symbols referenced by relocations #47468

@jeffatrad

Description

@jeffatrad
Bugzilla Link 48124
Version 11.0
OS Windows NT
CC @dwblaikie,@MaskRay

Extended Description

with llvm-strip -x S libname.a

And we're getting tons of errors saying:

"libname.a: not stripping symbol '.L.str' because it is named in a relocation"

There errordoesn't say the obj file that it comes from, so we don't know where to look, and it's always a literal const char string.

What's should we be looking here?

We use --strip-all --discard-all with the gcc strip and it works fine, so is llvm-strip just more aggressive?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close