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

move __res_init to syscall.cpp so that it's always included in ertlibc #160

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

thomasten
Copy link
Member

The __res_init stub is required by some cgo code. As EGo doesn't use any symbol of stubs.cpp, stubs.o won't be linked into EGo's libc. Move __res_init to syscall.cpp so that it's always included and available for EGo apps that dynamically link it.

Signed-off-by: Thomas Tendyck <tt@edgeless.systems>
@thomasten thomasten merged commit 38b95a1 into master Jan 29, 2024
2 checks passed
@thomasten thomasten deleted the res_init branch January 29, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants