2013-02-15 00:14:58 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Google, Inc.
|
|
|
|
* Copyright (C) 2008 Advanced Micro Devices, Inc.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
OUTPUT_FORMAT("elf32-littlearm","elf32-littlearm", "elf32-littlearm")
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
|
|
|
|
ENTRY(_entry)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2016-03-13 01:18:17 +01:00
|
|
|
. = CONFIG_LP_BASE_ADDRESS;
|
2013-02-15 00:14:58 +01:00
|
|
|
|
|
|
|
. = ALIGN(16);
|
|
|
|
_start = .;
|
|
|
|
|
|
|
|
.text : {
|
2023-11-18 05:12:01 +01:00
|
|
|
_text = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
*(.text._entry)
|
|
|
|
*(.text)
|
|
|
|
*(.text.*)
|
2023-11-18 05:12:01 +01:00
|
|
|
_etext = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.rodata : {
|
2023-11-18 05:12:01 +01:00
|
|
|
_rodata = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
*(.rodata)
|
|
|
|
*(.rodata.*)
|
2023-11-18 05:12:01 +01:00
|
|
|
_erodata = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.data : {
|
2023-11-18 05:12:01 +01:00
|
|
|
_data = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
2023-11-18 05:12:01 +01:00
|
|
|
_edata = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.bss : {
|
2023-11-18 05:12:01 +01:00
|
|
|
_bss = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
*(.sbss)
|
|
|
|
*(.sbss.*)
|
|
|
|
*(.bss)
|
|
|
|
*(.bss.*)
|
|
|
|
*(COMMON)
|
2023-11-18 05:12:01 +01:00
|
|
|
_ebss = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
|
|
|
|
/* Stack and heap */
|
|
|
|
|
|
|
|
. = ALIGN(16);
|
|
|
|
_heap = .;
|
2016-03-13 01:18:17 +01:00
|
|
|
. += CONFIG_LP_HEAP_SIZE;
|
2013-02-15 00:14:58 +01:00
|
|
|
. = ALIGN(16);
|
|
|
|
_eheap = .;
|
|
|
|
|
2023-11-18 05:12:01 +01:00
|
|
|
_stack = .;
|
2016-03-13 01:18:17 +01:00
|
|
|
. += CONFIG_LP_STACK_SIZE;
|
2013-02-15 00:14:58 +01:00
|
|
|
. = ALIGN(16);
|
2023-11-18 05:12:01 +01:00
|
|
|
_estack = .;
|
2013-02-15 00:14:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
_end = .;
|
|
|
|
|
|
|
|
/DISCARD/ : {
|
|
|
|
*(.comment)
|
|
|
|
*(.note*)
|
|
|
|
}
|
|
|
|
}
|