Jon Gjengset
Jon Gjengset
I'm working on a couple now. The biggest helpful change would be if `make` could produce a single `sgx.o` that sgx applications can be linked against. Currently, it's a big...
First draft of package here: https://aur.archlinux.org/packages/opensgx-git Note the patches: - [`opensgx-bin-paths.patch`](https://aur.archlinux.org/cgit/aur.git/tree/opensgx-bin-paths.patch?h=opensgx-git): makes `opensgx` use the commands `sgx`, `sgx-tool`, etc. directly now that they're in `/usr/bin/` - [`opensgx-compile.patch`](https://aur.archlinux.org/cgit/aur.git/tree/opensgx-compile.patch?h=opensgx-git): makes `opensgx` compile...
You should specifically look at the build script here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=opensgx-git
I've been digging some more, and it seems the problem is in how I compile the .sgx binary. If I compile with `./opensgx -c user/demo/hello.c`, but do all the other...
FWIW, my compiled `.sgx` is here: http://jon.thesquareplanet.com/share/opensgx/hello.sgx The corresponding `sign.key` is here: http://jon.thesquareplanet.com/share/opensgx/sign.key
Presumably, but I'm not sure what would be causing it? Are you running Arch Linux? If so, you should be able to reproduce by running `yaourt -S opensgx-git`, and then...
Thanks! In theory, just doing the same things as are done in the [`PKGBUILD`](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=opensgx-git) should allow you to reconstruct exactly the setup I have. If you have any questions at...
Aaaah, yes, that makes sense. Fixing this is going to be tricky, as it seems like you would need a separate linker script for every application that you compile. Perhaps...
Yes, that's fair. My question was specifically about what files are needed for the `*(.enc_text)` rule, as I'll need to copy those into the resulting package.
Woooo! It works! I've changed my `sgx-compile` to create an appropriate `.lds` script. It's a bit hacky, but I can now run demo.c successfully! See https://aur.archlinux.org/cgit/aur.git/tree/sgx-compile?h=opensgx-git. For what it's worth,...