{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7126","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7126/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7126/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7126/events","html_url":"https://github.com/ARMmbed/mbed-os/issues/7126","id":329513052,"node_id":"MDU6SXNzdWUzMjk1MTMwNTI=","number":7126,"title":"How to use custom linker script with mbed-cli?","user":{"login":"drahnr","id":667047,"node_id":"MDQ6VXNlcjY2NzA0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/667047?v=4","gravatar_id":"","url":"https://api.github.com/users/drahnr","html_url":"https://github.com/drahnr","followers_url":"https://api.github.com/users/drahnr/followers","following_url":"https://api.github.com/users/drahnr/following{/other_user}","gists_url":"https://api.github.com/users/drahnr/gists{/gist_id}","starred_url":"https://api.github.com/users/drahnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drahnr/subscriptions","organizations_url":"https://api.github.com/users/drahnr/orgs","repos_url":"https://api.github.com/users/drahnr/repos","events_url":"https://api.github.com/users/drahnr/events{/privacy}","received_events_url":"https://api.github.com/users/drahnr/received_events","type":"User","site_admin":false},"labels":[{"id":427713129,"node_id":"MDU6TGFiZWw0Mjc3MTMxMjk=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/mirrored","name":"mirrored","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T15:36:33Z","updated_at":"2018-06-05T15:50:18Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nmbed-os 5.9.1-rc1\r\nmbed-cli 1.7.2\r\n\r\nTrying to use a custom linker file always fails:\r\nJust placing it under my custom target dir still yields the issue as described in https://github.com/ARMmbed/mbed-cli/issues/687 and https://github.com/ARMmbed/mbed-os/pull/6914\r\n\r\nAlso trying to explicitly set the linker file via the cmd line opt `-l` fails the same way:\r\n```\r\nmbed compile --target MY_TARGET --app-config ./config/mbed_app.json --profile ./config/debug.json -N artifact -DLAUNCH_APP=18 -l ./src/TARGET_MY_TARGET/MY_TARGET.ld\r\n```\r\n\r\nThe underlying question is more, on how to properly use a custom linker file by means of defineing a custom target and exploiting the implicit directory structure, such that the derived MCU linker file does not collide with the custom linker script?\r\n\r\n### Issue request type\r\n\r\n[x] Question  \r\n[ ] Enhancement  \r\n[x] Bug  \r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/394761576","html_url":"https://github.com/ARMmbed/mbed-os/issues/7126#issuecomment-394761576","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7126","id":394761576,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDc2MTU3Ng==","user":{"login":"ciarmcom","id":14747535,"node_id":"MDQ6VXNlcjE0NzQ3NTM1","avatar_url":"https://avatars0.githubusercontent.com/u/14747535?v=4","gravatar_id":"","url":"https://api.github.com/users/ciarmcom","html_url":"https://github.com/ciarmcom","followers_url":"https://api.github.com/users/ciarmcom/followers","following_url":"https://api.github.com/users/ciarmcom/following{/other_user}","gists_url":"https://api.github.com/users/ciarmcom/gists{/gist_id}","starred_url":"https://api.github.com/users/ciarmcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciarmcom/subscriptions","organizations_url":"https://api.github.com/users/ciarmcom/orgs","repos_url":"https://api.github.com/users/ciarmcom/repos","events_url":"https://api.github.com/users/ciarmcom/events{/privacy}","received_events_url":"https://api.github.com/users/ciarmcom/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T15:50:18Z","updated_at":"2018-06-05T15:50:18Z","author_association":"MEMBER","body":"ARM Internal Ref: MBOTRIAGE-422"}}
{"actor":{"display_login":"ciarmcom"}}