gold doesn't recognise modifiers on memory LENGTH attributes e.g. MEMORY { flash (rx) : ORIGIN = 0x00000000, LENGTH = 2M ram (wiax) : ORIGIN = 0x20000000, LENGTH = 512k } error: syntax error, unexpected STRING, expecting ':' I'm pretty sure bfd ld also supports mathematical expressions here such as 2 * 1024 * 1024. Patrick
This is now fixed in the development sources. Thanks for reporting it.