{"action":"closed","issue":{"url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/gcc/issues/34","labels_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/gcc/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/gcc/issues/34/comments","events_url":"https://api.github.com/repos/foss-for-synopsys-dwc-arc-processors/gcc/issues/34/events","html_url":"https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/issues/34","id":60140884,"number":34,"title":"Override default heap size?","user":{"login":"jstraus59","id":10142791,"avatar_url":"https://avatars.githubusercontent.com/u/10142791?v=3","gravatar_id":"","url":"https://api.github.com/users/jstraus59","html_url":"https://github.com/jstraus59","followers_url":"https://api.github.com/users/jstraus59/followers","following_url":"https://api.github.com/users/jstraus59/following{/other_user}","gists_url":"https://api.github.com/users/jstraus59/gists{/gist_id}","starred_url":"https://api.github.com/users/jstraus59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstraus59/subscriptions","organizations_url":"https://api.github.com/users/jstraus59/orgs","repos_url":"https://api.github.com/users/jstraus59/repos","events_url":"https://api.github.com/users/jstraus59/events{/privacy}","received_events_url":"https://api.github.com/users/jstraus59/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T18:40:03Z","updated_at":"2015-03-06T20:36:05Z","closed_at":"2015-03-06T20:36:05Z","body":"I see in the linker scripts (e.g. arc-elf32-lib/ldscripts/arcelf.xn) the following:\r\n\r\n    . = . + (DEFINED(__HEAP_SIZE) ? __HEAP_SIZE : (DEFINED(__DEFAULT_HEAP_SIZE) ? __DEFAULT_HEAP_SIZE : 20k))  ;\r\n\r\nWhich would seem to imply that you can specify a value for __HEAP_SIZE to override the default heap size. I would like to do this using the ld command line, but I cannot find anything in the ld manual telling how to define a value for a linker script variable.\r\n\r\nDoes anyone know if there is a way to do this, either from the ld command line or any other way?\r\n\r\nThanks\r\n\r\nJim Straus"}}