{"action":"opened","issue":{"url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/200","repository_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain","labels_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/200/comments","events_url":"https://api.github.com/repos/riscv/riscv-gnu-toolchain/issues/200/events","html_url":"https://github.com/riscv/riscv-gnu-toolchain/issues/200","id":192926403,"number":200,"title":"Need to be able to create ELF files with 2M segment starting and alignment","user":{"login":"rminnich","id":74928,"avatar_url":"https://avatars.githubusercontent.com/u/74928?v=3","gravatar_id":"","url":"https://api.github.com/users/rminnich","html_url":"https://github.com/rminnich","followers_url":"https://api.github.com/users/rminnich/followers","following_url":"https://api.github.com/users/rminnich/following{/other_user}","gists_url":"https://api.github.com/users/rminnich/gists{/gist_id}","starred_url":"https://api.github.com/users/rminnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminnich/subscriptions","organizations_url":"https://api.github.com/users/rminnich/orgs","repos_url":"https://api.github.com/users/rminnich/repos","events_url":"https://api.github.com/users/rminnich/events{/privacy}","received_events_url":"https://api.github.com/users/rminnich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T18:33:20Z","updated_at":"2016-12-01T18:33:20Z","closed_at":null,"body":"The Harvey kernel, due to its HPC heritage, does not support or use 4K pages. On PPC, it uses 1M pages; on amd64 and riscv, it uses 2M pages.\r\n\r\nI've hit two issues with the riscv toolchain. I can't tell it to use 2M pages via the \r\n-z common-page-size=xxxx\r\nswitch to ld; it issues a warning that it is ignoring the switch.\r\nWhile I can use a ldscript to force alignment of program segments to 2M, it still sets the alignment element of the struct to 0x1000.\r\n\r\nWhat would be ideal is to have it correctly implement the common-page-size switch, such that segments are 2M aligned and the alignment in the ELF program headers is 0x200000, not 0x1000"}}
{"actor":{"display_login":"rminnich"}}