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
Bad libusgx_switchless.a in SGX 2.11 prebuilt SDK package #595
Comments
Generally, this error should be related to different binutils used. The SDK installer on download.01.org are built with the mitigation LVI binutils. Could you try to configure the LVI binutils in the Docker as well? |
interesting. i can confirm use the prebuilt bintuils can fix this issue. one more question: does this means that switchless feature requires the latest binutils? |
I don't think so. It should depend on what binutils version is used to build the SDK. If you build your own SGX SDK installer with the system default binutils, suppose you can build the sample successfully with the system binutils as well. |
understand. could you please confirm that the prebuilt static libraries in Intel SDK are compiled using the toolchain provided in as.ld.objdump.gold.r2.tar.gz ? thanks! |
Yes. All the SDK installers for 2.11 release provided in download.01.org are built with the prebuilt toolchain as.ld.objdump.gold.r2.tar.gz. And the prebuilt static libraries on that release are also built with that toolchain. |
awesome! and could we have the exact source code (git hash is good)and configurations (like the argument of |
The toolchain is based on https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=a09f656b267b9a684f038fba7cadfe98e2f18892, built with default configurations. |
@lzha101 thanks so much for your help! |
to reproduce, please
docker build
the following Dockerfiles. they all result in the above error messageUbuntu 18.04:
Centos 8
The text was updated successfully, but these errors were encountered: