{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2467","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2467/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2467/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2467/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/2467","id":171446495,"number":2467,"title":"Linker on Nordic nRF51822 `cannot move location counter backwards`.","user":{"login":"nuket","id":1294207,"avatar_url":"https://avatars.githubusercontent.com/u/1294207?v=3","gravatar_id":"","url":"https://api.github.com/users/nuket","html_url":"https://github.com/nuket","followers_url":"https://api.github.com/users/nuket/followers","following_url":"https://api.github.com/users/nuket/following{/other_user}","gists_url":"https://api.github.com/users/nuket/gists{/gist_id}","starred_url":"https://api.github.com/users/nuket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuket/subscriptions","organizations_url":"https://api.github.com/users/nuket/orgs","repos_url":"https://api.github.com/users/nuket/repos","events_url":"https://api.github.com/users/nuket/events{/privacy}","received_events_url":"https://api.github.com/users/nuket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-16T15:35:36Z","updated_at":"2016-08-17T09:08:06Z","closed_at":null,"body":"I'm trying to build a simple project but `ld` keeps complaining, when tried with both gcc 4.9 and gcc 5.4:\r\n\r\ngcc 4.9 says:\r\n\r\n> ./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fd8 to 0000000020007800)\r\n> collect2: error: ld returned 1 exit status\r\n> [ERROR] ./mbed-os/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld:142 cannot move location counter backwards (from 0000000020007fd8 to 0000000020007800)\r\n> collect2: error: ld returned 1 exit status\r\n\r\nAll of the code compiles fine, it's only the link step that is erroring out. Is it possible that I'm out of memory?\r\n\r\nThe mbed-os version number, using the mbed CLI:\r\n\r\n```\r\nmbed-os (8d368775e32a)\r\n```\r\n\r\nI tested the mbed OS Blinky example, and it builds fine."},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/240356245","html_url":"https://github.com/ARMmbed/mbed-os/issues/2467#issuecomment-240356245","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2467","id":240356245,"user":{"login":"nuket","id":1294207,"avatar_url":"https://avatars.githubusercontent.com/u/1294207?v=3","gravatar_id":"","url":"https://api.github.com/users/nuket","html_url":"https://github.com/nuket","followers_url":"https://api.github.com/users/nuket/followers","following_url":"https://api.github.com/users/nuket/following{/other_user}","gists_url":"https://api.github.com/users/nuket/gists{/gist_id}","starred_url":"https://api.github.com/users/nuket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuket/subscriptions","organizations_url":"https://api.github.com/users/nuket/orgs","repos_url":"https://api.github.com/users/nuket/repos","events_url":"https://api.github.com/users/nuket/events{/privacy}","received_events_url":"https://api.github.com/users/nuket/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T09:08:06Z","updated_at":"2016-08-17T09:08:06Z","body":"Looks like this could be the case, but if those values returned by the linker are correct, I'm not looking forward to optimizing down 2k worth of code. Things are pretty tight on the chip already and I'm not even close to done with my firmware.\r\n\r\nAlso asked this question at the Nordic support forum, and they referred to another link with a similar conclusion.\r\n\r\n* https://devzone.nordicsemi.com/question/91007/linker-cannot-move-counter-backwards-on-mbed/?answer=91073#post-id-91073\r\n* https://github.com/RIOT-OS/RIOT/wiki/Troubleshooting#question-2"}}
{"actor":{"display_login":"nuket"}}