edgelesssys / edgelessrt

Edgeless RT is an SDK and a runtime for Intel SGX. It combines top-notch Go support with simplicity, robustness and a small TCB. Developing confidential microservices has never been easier! C++17 and Rust (experimental) are also supported.
https://edgeless.systems
MIT License
134 stars 20 forks source link

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

Closed thomasten closed 9 months ago

thomasten commented 9 months ago

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.