Bug 12652 - gold doesn't recognise modifiers on memory LENGTHs
Summary: gold doesn't recognise modifiers on memory LENGTHs
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 06:00 UTC by Patrick Oppenlander
Modified: 2011-06-29 21:59 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Oppenlander 2011-04-08 06:00:53 UTC
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
Comment 1 Ian Lance Taylor 2011-06-29 21:59:09 UTC
This is now fixed in the development sources.

Thanks for reporting it.