* ldgram.y: Add support for REGION_ALIAS operator.

* ldlang.c: Likewise.
        * ldlang.h: Likewise.
        * ldlex.l: Likewise.
        * NEWS: Mention the new feature.
        * ld.texinfo: Document the new feature.
        * ld-scripts/regions-alias-1.t: New file.
        * ld-scripts/regions-alias-2.t: New file.
        * ld-scripts/regions-alias-3.t: New file.
        * ld-scripts/regions-alias-4.t: New file.
        * ld-scripts/script.exp: Run region alias tests.
This commit is contained in:
Nick Clifton
2009-03-02 17:27:36 +00:00
parent 220df88bff
commit 4a93e18003
25 changed files with 330 additions and 45 deletions

View File

@@ -1,9 +1,15 @@
MEMORY
{
TEXTMEM (ARX) : ORIGIN = 0x100, LENGTH = 32K
DATAMEM (AW) : org = 0x1000, l = (64 * 1024)
R_TEXTMEM (ARX) : ORIGIN = 0x100, LENGTH = 32K
R_DATAMEM (AW) : org = 0x1000, l = (64 * 1024)
}
REGION_ALIAS ("A_TEXTMEM", R_TEXTMEM);
REGION_ALIAS ("A_DATAMEM", R_DATAMEM);
REGION_ALIAS ("TEXTMEM", A_TEXTMEM);
REGION_ALIAS ("DATAMEM", A_DATAMEM);
SECTIONS
{
. = 0;