{"action":"created","issue":{"url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/30","repository_url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga","labels_url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/30/comments","events_url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/30/events","html_url":"https://github.com/Sakura-IT/SonnetAmiga/issues/30","id":131164609,"number":30,"title":"C executables built with Sonnet-modified WarpOS target still contain non-0x2005 hunks","user":{"login":"rkujawa","id":2439472,"avatar_url":"https://avatars.githubusercontent.com/u/2439472?v=3","gravatar_id":"","url":"https://api.github.com/users/rkujawa","html_url":"https://github.com/rkujawa","followers_url":"https://api.github.com/users/rkujawa/followers","following_url":"https://api.github.com/users/rkujawa/following{/other_user}","gists_url":"https://api.github.com/users/rkujawa/gists{/gist_id}","starred_url":"https://api.github.com/users/rkujawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkujawa/subscriptions","organizations_url":"https://api.github.com/users/rkujawa/orgs","repos_url":"https://api.github.com/users/rkujawa/repos","events_url":"https://api.github.com/users/rkujawa/events{/privacy}","received_events_url":"https://api.github.com/users/rkujawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/labels/toolchain","name":"toolchain","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"rkujawa","id":2439472,"avatar_url":"https://avatars.githubusercontent.com/u/2439472?v=3","gravatar_id":"","url":"https://api.github.com/users/rkujawa","html_url":"https://github.com/rkujawa","followers_url":"https://api.github.com/users/rkujawa/followers","following_url":"https://api.github.com/users/rkujawa/following{/other_user}","gists_url":"https://api.github.com/users/rkujawa/gists{/gist_id}","starred_url":"https://api.github.com/users/rkujawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkujawa/subscriptions","organizations_url":"https://api.github.com/users/rkujawa/orgs","repos_url":"https://api.github.com/users/rkujawa/repos","events_url":"https://api.github.com/users/rkujawa/events{/privacy}","received_events_url":"https://api.github.com/users/rkujawa/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-03T21:47:15Z","updated_at":"2016-02-04T09:53:05Z","closed_at":null,"body":"Currently, C executables linked with Sonnet-modified WarpOS target (`sonnet.o` instead of `warpup.o`) still contain two hunks without `0x2005` extended memory attribute.\r\n\r\nThis can be observed for example, in `wosdb`. Even though I added a bunch of `-hunkattr` parameters to `vlink`. \r\n\r\nInvestigating, I suspect `x.o` can be blamed here.\r\n\r\nNote hunk 6, 7 below:\r\n```\r\n$ sonnetrun/a.out wosdb/wosdb \r\nHUNK_HEADER\r\n\tHunk table size: 9\r\n\tFirst hunk to load: 0\r\n\tLast hunk to load: 8\r\nUnaligned read at 15f60!\r\nUnaligned read at 15f60!\r\nHUNK_CODE (0x3e9) hunk number 0 at offset 0x54\r\n\tSize: 156 Amiga longwords (624 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_CODE (0x3e9) hunk number 1 at offset 0x2cc\r\n\tSize: 17616 Amiga longwords (70464 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_RELOC32 (0x3ec)\r\nHUNK_CODE (0x3e9) hunk number 2 at offset 0x1162c\r\n\tSize: 7 Amiga longwords (28 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_DATA (0x3ea) hunk number 3 at offset 0x1166c\r\n\tSize: 829 Amiga longwords (3316 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_DATA (0x3ea) hunk number 4 at offset 0x12378\r\n\tSize: 1349 Amiga longwords (5396 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_DATA (0x3ea) hunk number 5 at offset 0x13c98\r\n\tSize: 116 Amiga longwords (464 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_DATA (0x3ea) hunk number 6 at offset 0x13f34\r\n\tSize: 4 Amiga longwords (16 bytes)\r\n\tFlags: None (implied MEMF_PUBLIC)\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_DATA (0x3ea) hunk number 7 at offset 0x13fdc\r\n\tSize: 6 Amiga longwords (24 bytes)\r\n\tFlags: None (implied MEMF_PUBLIC)\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\nHUNK_BSS (0x3eb) hunk number 8 at offset 0x14010\r\n\tSize: 1996 Amiga longwords (7984 bytes)\r\n\tFlags: Extended mem attributes\r\n\t\tExtended memory attribute: 0x2005\r\n\tRelocation: HUNK_DRELOC32 (0x3f7)\r\n```"},"comment":{"url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/comments/179738356","html_url":"https://github.com/Sakura-IT/SonnetAmiga/issues/30#issuecomment-179738356","issue_url":"https://api.github.com/repos/Sakura-IT/SonnetAmiga/issues/30","id":179738356,"user":{"login":"DvdBoon","id":10966544,"avatar_url":"https://avatars.githubusercontent.com/u/10966544?v=3","gravatar_id":"","url":"https://api.github.com/users/DvdBoon","html_url":"https://github.com/DvdBoon","followers_url":"https://api.github.com/users/DvdBoon/followers","following_url":"https://api.github.com/users/DvdBoon/following{/other_user}","gists_url":"https://api.github.com/users/DvdBoon/gists{/gist_id}","starred_url":"https://api.github.com/users/DvdBoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DvdBoon/subscriptions","organizations_url":"https://api.github.com/users/DvdBoon/orgs","repos_url":"https://api.github.com/users/DvdBoon/repos","events_url":"https://api.github.com/users/DvdBoon/events{/privacy}","received_events_url":"https://api.github.com/users/DvdBoon/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T09:53:05Z","updated_at":"2016-02-04T09:53:05Z","body":"Automatic constructors/deconstructors are added when using -amigahunk. Or\nso the vlink docs say. Don't know if that is relevant.\n\n2016-02-04 10:24 GMT+01:00 Radosław Kujawa <notifications@github.com>:\n\n> Actually not x.o. Linking with -M shows:\n>\n> ------------------------------\n>   00000000 .ctors  (size 10)\n>            00000000 - 00000010 INITEXIT(.ctors)\n> ------------------------------\n>   00000000 .dtors  (size 18)\n>            00000000 - 00000018 INITEXIT(.dtors)\n> ------------------------------\n>\n> These are the culprits, now where are they added...\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Sakura-IT/SonnetAmiga/issues/30#issuecomment-179727805>\n> .\n>\n"}}