Skip to content

lld/mac mislinks binaries (protoc, chromium, ...) on arm with --deduplicate-literals #50135

@nico

Description

@nico
Bugzilla Link 50791
Version unspecified
OS All
Attachments csd.proto
CC @gkmhub,@int3,@smeenai

Extended Description

Repro: https://drive.google.com/file/d/1RJe4CRLk3_ULWolz4xZApy6XIJvxMl1R/view?usp=sharing

Link using the response file, then run like so:

./protoc csd.proto --cpp_out .

Then look at csd.pb.h in the output. Line 45 will say

static const ::r_PROTO_NAMESPACE_ID::internal::ParseTableField entries[]

There's a \0 character in the middle of the line, and the line's all wrong.

Remove --deduplicate-literals from that line, link again, and that line looks like

static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]

like it's supposed to do.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions