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 exits non-zero return value linking a library with no entry symbol after 282295 #29869

Closed
emaste opened this issue Sep 26, 2016 · 3 comments
Labels
bugzilla Issues migrated from bugzilla lld:ELF

Comments

@emaste
Copy link
Member

emaste commented Sep 26, 2016

Bugzilla Link 30521
Resolution FIXED
Resolved on Sep 26, 2016 14:25
Version unspecified
OS FreeBSD

Extended Description

Linking FreeBSD/arm64 libc after r282295:
% bin/ld.lld $(cat response.txt )
entry symbol not found, assuming 0
feynman% echo $?
1

with r282295 reverted:
% bin/ld.lld $(cat response.txt )
% echo $?
0

The build fails due to the non-zero exit code.
Reproduction cpio available at https://people.freebsd.org/~emaste/lld/libc-repro.cpio

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 26, 2016

It is because you use --fatal-warnings,
I prepared a patch: D24908

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 26, 2016

Patch that removes warnings about absent of entry for -shared: https://reviews.llvm.org/D24913

@llvmbot
Copy link
Collaborator

llvmbot commented Sep 26, 2016

rL282427

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lld:ELF
Projects
None yet
Development

No branches or pull requests

2 participants