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

Current LLD 20 fails to link dependency in liblldMachO.a correctly #122655

Open
lerno opened this issue Jan 12, 2025 · 1 comment
Open

Current LLD 20 fails to link dependency in liblldMachO.a correctly #122655

lerno opened this issue Jan 12, 2025 · 1 comment

Comments

@lerno
Copy link
Contributor

lerno commented Jan 12, 2025

linking liblldMachO.a fails on a vanilla Linux build, with the following code:

/usr/bin/ld: /usr/lib/llvm-20/lib/liblldMachO.a(BPSectionOrderer.cpp.o): in function `lld::macho::runBalancedPartitioning(llvm::StringRef, bool, bool, bool, bool)':
(.text._ZN3lld5macho23runBalancedPartitioningEN4llvm9StringRefEbbbb+0x2fc): undefined reference to `lld::BPSectionBase::reorderSectionsByBalancedPartitioning(llvm::StringRef, bool, bool, bool, bool, llvm::SmallVector<std::unique_ptr<lld::BPSectionBase, std::default_delete<lld::BPSectionBase> >, 6u>&)'

This first started happening around Dec 19 2024, so is related some change during that time.

@llvmbot llvmbot added the lld label Jan 12, 2025
@lerno
Copy link
Contributor Author

lerno commented Jan 12, 2025

The missing function seems to be reorderSectionsByBalancedPartitioning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants