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

how can I run the program by using sgxbouds optimization #5

Open
liang1232018 opened this issue Oct 25, 2018 · 2 comments
Open

how can I run the program by using sgxbouds optimization #5

liang1232018 opened this issue Oct 25, 2018 · 2 comments

Comments

@liang1232018
Copy link

I have done this:

  1. write a test.c
    2.clang -c -emit-llvm runtime.c test.c
    3.llvm-link runtime.bc test.bc > test-runtime.bc
    4.opt -load ./sgxbouds.so < test-runtime.bc > test-sgx.bc -sgxbouds -enable-opt -debug
    5.clang -c -emit-llvm wrappers.c
    6.llvm-link test-sgx.bc wrappers.bc >test-result.bc
    7,lli test-result.bc

when I doing the 7 step, It assert some errors:
1.function 'get_heap_end' which could not be resolved!
2.function 'malloc_real' which could not be resolved!

It seems the sgxbouds does not contain those functions realize,only contains declarations.
And I know malloc_real means "malloc" in glibc,But what get_heap_end is.
I can not find get_heap_end in glibc.
Need help,Thanks

@dimakuv
Copy link
Member

dimakuv commented Oct 25, 2018

Hello Liang,

Could you send me a private email so I can forward you the instructions?

@arxgy
Copy link

arxgy commented Aug 28, 2023

I also have the same issues and have sent an email to you. @dimakuv I'd appreciate it for your instructions.

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

No branches or pull requests

3 participants