Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lld Mach-O backend reports a warning when using DWARF 5 #51668

Closed
petrhosek opened this issue Oct 27, 2021 · 4 comments
Closed

lld Mach-O backend reports a warning when using DWARF 5 #51668

petrhosek opened this issue Oct 27, 2021 · 4 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla invalid Resolved as invalid, i.e. not a bug lld:MachO

Comments

@petrhosek
Copy link
Member

Bugzilla Link 52326
Version unspecified
OS All
CC @dwblaikie,@gkmhub,@int3,@nico,@smeenai,@oontvoo

Extended Description

You can reproduce it with the following:

$ cat >a.c <<EOF
int main() {}
EOF
$ clang a.c -gdwarf-5 -fuse-ld=lld
ld64.lld: warning: /var/folders/5t/h2t4fx3d2bg1yfs2pcwgzzlw0056zt/T/a-60c5cf.o: invalid reference to or invalid content in .debug_str_offsets[.dwo]: section offset exceeds section size
@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
@oontvoo oontvoo added the lld label Dec 18, 2021
@BertalanD BertalanD self-assigned this Jul 26, 2022
@BertalanD
Copy link
Member

Proposed fix: https://reviews.llvm.org/D130559

@yuanfang-chen
Copy link
Collaborator

I could still reproduce this with upstream Clang instead of Apple Clang.

@yuanfang-chen yuanfang-chen reopened this Nov 18, 2022
@BertalanD
Copy link
Member

I can't reproduce the problem with the commands listed in the original issue. Could you share a repro case with me?

I used Clang and LLD built from commit 0e4378c.

@yuanfang-chen
Copy link
Collaborator

I can't reproduce the problem with the commands listed in the original issue. Could you share a repro case with me?

I used Clang and LLD built from commit 0e4378c.

I had a stale build. Yeah, it was fixed. Apologies for the false alarm.

@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2022
@EugeneZelenko EugeneZelenko added the invalid Resolved as invalid, i.e. not a bug label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla invalid Resolved as invalid, i.e. not a bug lld:MachO
Projects
None yet
Development

No branches or pull requests

5 participants