{"action":"opened","issue":{"url":"https://api.github.com/repos/endrazine/wcc/issues/6","repository_url":"https://api.github.com/repos/endrazine/wcc","labels_url":"https://api.github.com/repos/endrazine/wcc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/endrazine/wcc/issues/6/comments","events_url":"https://api.github.com/repos/endrazine/wcc/issues/6/events","html_url":"https://github.com/endrazine/wcc/issues/6","id":170983455,"number":6,"title":"Example usage of WSH under QEMU user-space emulation?","user":{"login":"michael-myers","id":5177188,"avatar_url":"https://avatars.githubusercontent.com/u/5177188?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-myers","html_url":"https://github.com/michael-myers","followers_url":"https://api.github.com/users/michael-myers/followers","following_url":"https://api.github.com/users/michael-myers/following{/other_user}","gists_url":"https://api.github.com/users/michael-myers/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-myers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-myers/subscriptions","organizations_url":"https://api.github.com/users/michael-myers/orgs","repos_url":"https://api.github.com/users/michael-myers/repos","events_url":"https://api.github.com/users/michael-myers/events{/privacy}","received_events_url":"https://api.github.com/users/michael-myers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-13T00:38:55Z","updated_at":"2016-08-13T00:38:55Z","closed_at":null,"body":"Jonathan you mentioned it was possible to use WSH on ARM binaries from x86 Linux in a single process using QEMU, and I think I almost got it, but not quite. Maybe I need an example. Here's where I start:\r\n`$ uname -a \r\nLinux mmyers-Ubuntu16VM 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n`\r\nI test that I can compile and run an ARM Hello World using QEMU user-space emulation: \r\n`$ sudo apt-get install qemu qemu-user-static gcc-arm-linux-gnueabi\r\n$ arm-linux-gnueabi-gcc -Wall -o hello helloworld.c\r\n$ qemu-arm-static -L /usr/arm-linux-gnueabi/ hello\r\nhello world!\r\n`\r\n\r\nIt seems like I should be able to use wsh-arm on this hello process since they are similar-ish.\r\n`$ file hello\r\nhello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=29f94eddb883c86a6ec58f685c848a560ad64bfb, not stripped\r\n$ file ./wcc/bin/wsh-arm\r\n./wcc/bin/wsh-arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /usr/arm-linux-gnueabi/lib/ld-linux.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=2dc627daeba328aa3212f1731f0fec86665cb7bb, not stripped\r\n`\r\n\r\nSo I do this and woops!\r\n`$ qemu-arm-static -L /usr/arm-linux-gnueabi/ ./wcc/bin/wsh-arm hello\r\nqemu: uncaught target signal 11 (Segmentation fault) - core dumped\r\nSegmentation fault (core dumped)`\r\n\r\nThis is probably user error? Thanks again for any clarification you can provide!"}}
{"actor":{"display_login":"michael-myers"}}