Merge pull request #2879 from Ingenic-community/X1000_lds

X1000: x1000_ram.lds: 修复调试时崩溃的问题/Fix crash when debugging.
This commit is contained in:
Bernard Xiong 2019-07-21 17:51:36 +08:00 committed by GitHub
commit 9ce43c5d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 16 deletions

View File

@ -1,23 +1,12 @@
/*
* File : x1000_ram.lds
* COPYRIGHT (C) 2015, RT-Thread Development Team
* Copyright (c) 2006-2019, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2015-12-12 bernard first version
* 2019-04-04 Jean-Luc add support for large number of sections.
*/
OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
@ -43,6 +32,11 @@ SECTIONS
.text :
{
*(.text.unlikely .text.*_unlikely .text.unlikely.*)
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.text) /* remaining code */
*(.text.*) /* remaining code */
*(.rodata) /* read-only data (constants) */
@ -87,6 +81,12 @@ SECTIONS
} > DRAM
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } > DRAM
. = ALIGN(4);
.gnu_extab :
{
*(.gnu_extab.*)
} > DRAM
. = ALIGN(4);
.ctors :
{