{"action":"created","issue":{"url":"https://api.github.com/repos/lunixbochs/usercorn/issues/21","labels_url":"https://api.github.com/repos/lunixbochs/usercorn/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/lunixbochs/usercorn/issues/21/comments","events_url":"https://api.github.com/repos/lunixbochs/usercorn/issues/21/events","html_url":"https://github.com/lunixbochs/usercorn/issues/21","id":104634601,"number":21,"title":"support dynamic linkers","user":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lunixbochs/usercorn/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/lunixbochs/usercorn/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/lunixbochs/usercorn/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lunixbochs/usercorn/milestones/1","html_url":"https://github.com/lunixbochs/usercorn/milestones/minimum%20viable","labels_url":"https://api.github.com/repos/lunixbochs/usercorn/milestones/1/labels","id":1397277,"number":1,"title":"minimum viable","description":"","creator":{"login":"lunixbochs","id":117642,"avatar_url":"https://avatars.githubusercontent.com/u/117642?v=3","gravatar_id":"","url":"https://api.github.com/users/lunixbochs","html_url":"https://github.com/lunixbochs","followers_url":"https://api.github.com/users/lunixbochs/followers","following_url":"https://api.github.com/users/lunixbochs/following{/other_user}","gists_url":"https://api.github.com/users/lunixbochs/gists{/gist_id}","starred_url":"https://api.github.com/users/lunixbochs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunixbochs/subscriptions","organizations_url":"https://api.github.com/users/lunixbochs/orgs","repos_url":"https://api.github.com/users/lunixbochs/repos","events_url":"https://api.github.com/users/lunixbochs/events{/privacy}","received_events_url":"https://api.github.com/users/lunixbochs/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-11-06T08:31:57Z","updated_at":"2015-11-07T22:51:30Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2015-09-03T07:03:03Z","updated_at":"2015-12-05T02:30:11Z","closed_at":null,"body":"- [x] if type == EXEC, it's a normal executable\r\n- [x] if type == DYN, we mmap it somewhere\r\n- [x] also PT_INTERP gets vm_mmap()'d *after* elf_map runs and maps the whole elf\r\n- [x] so for exec'd linker, I need to start with DYN\r\n- [x] for INTERP ld-linux, I need to map the elf, then load and map the interpreter\r\n- [ ] be careful to not map linker after the data segment so we can brk()\r\n\r\n---\r\n- [x] support linux auxv\r\n- [ ] support linux vdso\r\n- [ ] support osx auxv equivalent (not sure 100% how the ABI plays out yet but dyld source is short)\r\n- [ ] support osx commpage\r\n- [x] branch protect master when this is done and switch dev to an unstable branch\r\n"},"comment":{"url":"https://api.github.com/repos/lunixbochs/usercorn/issues/comments/162132831","html_url":"https://github.com/lunixbochs/usercorn/issues/21#issuecomment-162132831","issue_url":"https://api.github.com/repos/lunixbochs/usercorn/issues/21","id":162132831,"user":{"login":"petevine","id":12054457,"avatar_url":"https://avatars.githubusercontent.com/u/12054457?v=3","gravatar_id":"","url":"https://api.github.com/users/petevine","html_url":"https://github.com/petevine","followers_url":"https://api.github.com/users/petevine/followers","following_url":"https://api.github.com/users/petevine/following{/other_user}","gists_url":"https://api.github.com/users/petevine/gists{/gist_id}","starred_url":"https://api.github.com/users/petevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petevine/subscriptions","organizations_url":"https://api.github.com/users/petevine/orgs","repos_url":"https://api.github.com/users/petevine/repos","events_url":"https://api.github.com/users/petevine/events{/privacy}","received_events_url":"https://api.github.com/users/petevine/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T02:30:11Z","updated_at":"2015-12-05T02:30:11Z","body":"Could you explain what's going on here:\r\n\r\n**/usercorn /bin64/ldd /bin64/wc --help**\r\n\r\n````\r\npanic: Could not identify file magic.\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n        /home/petevine/go/src/github.com/lunixbochs/usercorn/go/usercorn/cli.go:55 +0x636\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n        /home/petevine/go/src/runtime/asm_386.s:1662 +0x1\r\n````\r\nor\r\n**./usercorn /bin64/wc --help**\r\n````\r\ninvalid read: @0x8, 0x8 = 0x0\r\nRegisters:\r\n   fs 0x0000000000000000   rbx 0x000000000012a000   rsi 0x0000000000000000   r11 0x00000000607fe620 \r\n   gs 0x0000000000000000   rcx 0x000000000040108d    r8 0x000000000012a000   r12 0x000000000012a000 \r\n  rax 0x0000000000000000   rdi 0x00000000607fed5d    r9 0x0000000000000001   r13 0x0000000000000000 \r\n  rbp 0x00000000607fe770   rdx 0x000000000d696913   r10 0x000000000101cdc1   r14 0x000000000d696913 \r\n                                                                             r15 0x000000000040108d \r\n````\r\n\r\nThx!\r\n"}}