mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-25 22:07:15 +00:00
Changed based on patch from pc386 linkcmds from Ian Lance Taylor
<ian@airs.com>: The pc386 linker scripts omits .gnu.linkonce.r* sections. It's not a big deal, but they should be treated like .rodata sections. ELF versions of g++ generate them for static constants defined in template classes, such as string::npos.
This commit is contained in:
@@ -50,7 +50,7 @@ SECTIONS
|
||||
|
||||
.init : { *(.init) } >RAM
|
||||
.fini : { *(.fini) } >RAM
|
||||
.rodata : { *(.rodata) } >RAM
|
||||
.rodata : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
|
||||
|
||||
.data :
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ SECTIONS
|
||||
.fini ALIGN(8) : { *(.fini) } =0
|
||||
.ctors ALIGN(8) : { *(.ctors) }
|
||||
.dtors ALIGN(8) : { *(.dtors) }
|
||||
.rodata ALIGN(8) : { *(.rodata) }
|
||||
.rodata ALIGN(8) : { *(.rodata) *(.gnu.linkonce.r*) }
|
||||
.rodata1 ALIGN(8) :
|
||||
{
|
||||
*(.rodata1)
|
||||
|
||||
@@ -23,7 +23,7 @@ SECTIONS
|
||||
.fini ALIGN(8) : { *(.fini) } =0
|
||||
.ctors ALIGN(8) : { *(.ctors) }
|
||||
.dtors ALIGN(8) : { *(.dtors) }
|
||||
.rodata ALIGN(8) : { *(.rodata) }
|
||||
.rodata ALIGN(8) : { *(.rodata) *(.gnu.linkonce.r*) }
|
||||
.rodata1 ALIGN(8) :
|
||||
{
|
||||
*(.rodata1)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* This file contains directives for the GNU linker which are specific
|
||||
* to the FORCE CPU386 board.
|
||||
* to the NO_CPU NO_BSP BOARD.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1998.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
|
||||
@@ -35,6 +35,7 @@ SECTIONS
|
||||
*(.entry2)
|
||||
*(.text)
|
||||
*(.rodata)
|
||||
*(.gnu.linkonce.r*)
|
||||
*(.rodata1)
|
||||
*(.descriptors)
|
||||
*(rom_ver)
|
||||
|
||||
@@ -65,7 +65,7 @@ SECTIONS
|
||||
} >RAM
|
||||
.init : { *(.init) } >RAM
|
||||
.fini : { *(.fini) } >RAM
|
||||
.rodata : { *(.rodata) } >RAM
|
||||
.rodata : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
|
||||
.rodata1 : { *(.rodata1) } >RAM
|
||||
_etext = .;
|
||||
PROVIDE (etext = .);
|
||||
|
||||
Reference in New Issue
Block a user