Commit 9dc24cbd authored by Soby Mathew's avatar Soby Mathew Committed by TrustedFirmware Code Review
Browse files

Merge "bl2_el3: clean up linker script" into integration

parents fc3c382f 2f6f00dc
......@@ -21,6 +21,9 @@ MEMORY {
#endif
}
#if !BL2_IN_XIP_MEM
#define ROM RAM
#endif
SECTIONS
{
......@@ -45,11 +48,7 @@ SECTIONS
*(.vectors)
. = ALIGN(PAGE_SIZE);
__TEXT_END__ = .;
#if BL2_IN_XIP_MEM
} >ROM
#else
} >RAM
#endif
.rodata . : {
__RODATA_START__ = .;
......@@ -72,11 +71,7 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
__RODATA_END__ = .;
#if BL2_IN_XIP_MEM
} >ROM
#else
} >RAM
#endif
ASSERT(__TEXT_RESIDENT_END__ - __TEXT_RESIDENT_START__ <= PAGE_SIZE,
"Resident part of BL2 has exceeded its limit.")
......@@ -115,11 +110,7 @@ SECTIONS
. = ALIGN(PAGE_SIZE);
__RO_END__ = .;
#if BL2_IN_XIP_MEM
} >ROM
#else
} >RAM
#endif
#endif
ASSERT(__CPU_OPS_END__ > __CPU_OPS_START__,
......@@ -146,11 +137,7 @@ SECTIONS
__DATA_RAM_START__ = .;
*(.data*)
__DATA_RAM_END__ = .;
#if BL2_IN_XIP_MEM
} >RAM AT>ROM
#else
} >RAM
#endif
stacks (NOLOAD) : {
__STACKS_START__ = .;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment