[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/7031] New linker command file function: REGION_ALIAS
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/7031] New linker command file function: REGION_ALIAS |
Date: |
17 Nov 2008 16:34:16 -0000 |
------- Additional Comments From nickc at redhat dot com 2008-11-17 16:34
-------
Hi Sebastian,
Why not use a pre-processor instead ? For example your board specific file
could look like this:
MEMORY {
ROM_REGION (RX) : ORIGIN = 0x10000000, LENGTH = 256M
RAM_REGION (AIW) : ORIGIN = 0x20000000, LENGTH = 256M
}
#define TEXT_REGION ROM_REGION
#define DATA_REGION RAM_REGION
#define BSS_REGION RAM_REGION
#include "linkcmds.base"
and where you would have "gcc -T <board-script> ..." as your command line you
could use:
cpp <board-script> <tmp-full-script>
gcc -T <tmp-full-script>
rm <tmp-full-script>
The point being that there is no need to add any extra functionality to the
linker, along with the possibility of introducing new bugs.
Cheers
Nick
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=7031
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.