{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/lunixbochs/lib43/pulls/4","id":29420430,"html_url":"https://github.com/lunixbochs/lib43/pull/4","diff_url":"https://github.com/lunixbochs/lib43/pull/4.diff","patch_url":"https://github.com/lunixbochs/lib43/pull/4.patch","issue_url":"https://api.github.com/repos/lunixbochs/lib43/issues/4","number":4,"state":"open","locked":false,"title":"Add ARM support, fix bug exposed with realloc under ARM","user":{"login":"tmcarthur","id":1635529,"avatar_url":"https://avatars.githubusercontent.com/u/1635529?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcarthur","html_url":"https://github.com/tmcarthur","followers_url":"https://api.github.com/users/tmcarthur/followers","following_url":"https://api.github.com/users/tmcarthur/following{/other_user}","gists_url":"https://api.github.com/users/tmcarthur/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcarthur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcarthur/subscriptions","organizations_url":"https://api.github.com/users/tmcarthur/orgs","repos_url":"https://api.github.com/users/tmcarthur/repos","events_url":"https://api.github.com/users/tmcarthur/events{/privacy}","received_events_url":"https://api.github.com/users/tmcarthur/received_events","type":"User","site_admin":false},"body":"tl;dr - ARM support, a fix for realloc\r\n\r\nI tested this on my raspberry pi to ensure it worked - I cannot at this time verify arm64 works, but once I have a device I will verify/add this support \r\n\r\nI had to link against gcc lib on this platform to grab a few symbols because a given ARM processor may or may not support native integer division, if not we have to pull in implementation from GCC (or do so ourselves, but for another day =) - it doesn't import _Start or anything, I verified this myself by removing arch code, failed build, and then manually setting exit status in _start.s to ensure it was using our _start implementation.  Subsequently also had to define raise() because gcc's integer division implementations expect it to raise floating point exception is required - verified case of division by 0 sends correct signal to process.\r\n","created_at":"2015-02-17T06:15:58Z","updated_at":"2015-02-17T06:15:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lunixbochs/lib43/pulls/4/commits","review_comments_url":"https://api.github.com/repos/lunixbochs/lib43/pulls/4/comments","review_comment_url":"https://api.github.com/repos/lunixbochs/lib43/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lunixbochs/lib43/issues/4/comments","statuses_url":"https://api.github.com/repos/lunixbochs/lib43/statuses/374fcb7732c9415cb2bb2b1662db0ca3268b7c7e","head":{"label":"tmcarthur:master","ref":"master","sha":"374fcb7732c9415cb2bb2b1662db0ca3268b7c7e","user":{"login":"tmcarthur","id":1635529,"avatar_url":"https://avatars.githubusercontent.com/u/1635529?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcarthur","html_url":"https://github.com/tmcarthur","followers_url":"https://api.github.com/users/tmcarthur/followers","following_url":"https://api.github.com/users/tmcarthur/following{/other_user}","gists_url":"https://api.github.com/users/tmcarthur/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcarthur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcarthur/subscriptions","organizations_url":"https://api.github.com/users/tmcarthur/orgs","repos_url":"https://api.github.com/users/tmcarthur/repos","events_url":"https://api.github.com/users/tmcarthur/events{/privacy}","received_events_url":"https://api.github.com/users/tmcarthur/received_events","type":"User","site_admin":false},"repo":{"id":30100714,"name":"lib43","full_name":"tmcarthur/lib43","owner":{"login":"tmcarthur","id":1635529,"avatar_url":"https://avatars.githubusercontent.com/u/1635529?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcarthur","html_url":"https://github.com/tmcarthur","followers_url":"https://api.github.com/users/tmcarthur/followers","following_url":"https://api.github.com/users/tmcarthur/following{/other_user}","gists_url":"https://api.github.com/users/tmcarthur/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcarthur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcarthur/subscriptions","organizations_url":"https://api.github.com/users/tmcarthur/orgs","repos_url":"https://api.github.com/users/tmcarthur/repos","events_url":"https://api.github.com/users/tmcarthur/events{/privacy}","received_events_url":"https://api.github.com/users/tmcarthur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmcarthur/lib43","description":"minimal libc for experiments","fork":true,"url":"https://api.github.com/repos/tmcarthur/lib43","forks_url":"https://api.github.com/repos/tmcarthur/lib43/forks","keys_url":"https://api.github.com/repos/tmcarthur/lib43/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmcarthur/lib43/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmcarthur/lib43/teams","hooks_url":"https://api.github.com/repos/tmcarthur/lib43/hooks","issue_events_url":"https://api.github.com/repos/tmcarthur/lib43/issues/events{/number}","events_url":"https://api.github.com/repos/tmcarthur/lib43/events","assignees_url":"https://api.github.com/repos/tmcarthur/lib43/assignees{/user}","branches_url":"https://api.github.com/repos/tmcarthur/lib43/branches{/branch}","tags_url":"https://api.github.com/repos/tmcarthur/lib43/tags","blobs_url":"https://api.github.com/repos/tmcarthur/lib43/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmcarthur/lib43/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmcarthur/lib43/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmcarthur/lib43/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmcarthur/lib43/statuses/{sha}","languages_url":"https://api.github.com/repos/tmcarthur/lib43/languages","stargazers_url":"https://api.github.com/repos/tmcarthur/lib43/stargazers","contributors_url":"https://api.github.com/repos/tmcarthur/lib43/contributors","subscribers_url":"https://api.github.com/repos/tmcarthur/lib43/subscribers","subscription_url":"https://api.github.com/repos/tmcarthur/lib43/subscription","commits_url":"https://api.github.com/repos/tmcarthur/lib43/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmcarthur/lib43/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmcarthur/lib43/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmcarthur/lib43/issues/comments/{number}","contents_url":"https://api.github.com/repos/tmcarthur/lib43/contents/{+path}","compare_url":"https://api.github.com/repos/tmcarthur/lib43/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmcarthur/lib43/merges","archive_url":"https://api.github.com/repos/tmcarthur/lib43/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmcarthur/lib43/downloads","issues_url":"https://api.github.com/repos/tmcarthur/lib43/issues{/number}","pulls_url":"https://api.github.com/repos/tmcarthur/lib43/pulls{/number}","milestones_url":"https://api.github.com/repos/tmcarthur/lib43/milestones{/number}","notifications_url":"https://api.github.com/repos/tmcarthur/lib43/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmcarthur/lib43/labels{/name}","releases_url":"https://api.github.com/repos/tmcarthur/lib43/releases{/id}","created_at":"2015-01-31T03:20:40Z","updated_at":"2015-02-17T06:11:46Z","pushed_at":"2015-02-17T06:11:46Z","git_url":"git://github.com/tmcarthur/lib43.git","ssh_url":"git@github.com:tmcarthur/lib43.git","clone_url":"https://github.com/tmcarthur/lib43.git","svn_url":"https://github.com/tmcarthur/lib43","homepage":"","size":150,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lunixbochs:master","ref":"master","sha":"0e19ed1a9ada7c750df220993d78184bed1df4a8","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},"repo":{"id":29947176,"name":"lib43","full_name":"lunixbochs/lib43","owner":{"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},"private":false,"html_url":"https://github.com/lunixbochs/lib43","description":"minimal libc for experiments","fork":false,"url":"https://api.github.com/repos/lunixbochs/lib43","forks_url":"https://api.github.com/repos/lunixbochs/lib43/forks","keys_url":"https://api.github.com/repos/lunixbochs/lib43/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunixbochs/lib43/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunixbochs/lib43/teams","hooks_url":"https://api.github.com/repos/lunixbochs/lib43/hooks","issue_events_url":"https://api.github.com/repos/lunixbochs/lib43/issues/events{/number}","events_url":"https://api.github.com/repos/lunixbochs/lib43/events","assignees_url":"https://api.github.com/repos/lunixbochs/lib43/assignees{/user}","branches_url":"https://api.github.com/repos/lunixbochs/lib43/branches{/branch}","tags_url":"https://api.github.com/repos/lunixbochs/lib43/tags","blobs_url":"https://api.github.com/repos/lunixbochs/lib43/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunixbochs/lib43/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunixbochs/lib43/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunixbochs/lib43/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunixbochs/lib43/statuses/{sha}","languages_url":"https://api.github.com/repos/lunixbochs/lib43/languages","stargazers_url":"https://api.github.com/repos/lunixbochs/lib43/stargazers","contributors_url":"https://api.github.com/repos/lunixbochs/lib43/contributors","subscribers_url":"https://api.github.com/repos/lunixbochs/lib43/subscribers","subscription_url":"https://api.github.com/repos/lunixbochs/lib43/subscription","commits_url":"https://api.github.com/repos/lunixbochs/lib43/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunixbochs/lib43/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunixbochs/lib43/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunixbochs/lib43/issues/comments/{number}","contents_url":"https://api.github.com/repos/lunixbochs/lib43/contents/{+path}","compare_url":"https://api.github.com/repos/lunixbochs/lib43/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunixbochs/lib43/merges","archive_url":"https://api.github.com/repos/lunixbochs/lib43/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunixbochs/lib43/downloads","issues_url":"https://api.github.com/repos/lunixbochs/lib43/issues{/number}","pulls_url":"https://api.github.com/repos/lunixbochs/lib43/pulls{/number}","milestones_url":"https://api.github.com/repos/lunixbochs/lib43/milestones{/number}","notifications_url":"https://api.github.com/repos/lunixbochs/lib43/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunixbochs/lib43/labels{/name}","releases_url":"https://api.github.com/repos/lunixbochs/lib43/releases{/id}","created_at":"2015-01-28T02:47:11Z","updated_at":"2015-02-16T17:22:38Z","pushed_at":"2015-02-02T17:22:28Z","git_url":"git://github.com/lunixbochs/lib43.git","ssh_url":"git@github.com:lunixbochs/lib43.git","clone_url":"https://github.com/lunixbochs/lib43.git","svn_url":"https://github.com/lunixbochs/lib43","homepage":"","size":313,"stargazers_count":30,"watchers_count":30,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lunixbochs/lib43/pulls/4"},"html":{"href":"https://github.com/lunixbochs/lib43/pull/4"},"issue":{"href":"https://api.github.com/repos/lunixbochs/lib43/issues/4"},"comments":{"href":"https://api.github.com/repos/lunixbochs/lib43/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/lunixbochs/lib43/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/lunixbochs/lib43/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lunixbochs/lib43/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/lunixbochs/lib43/statuses/374fcb7732c9415cb2bb2b1662db0ca3268b7c7e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":49,"deletions":8,"changed_files":6}}