From d1d4766494b6d8d42aa906d07b5efd55bb50ea0c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 30 Sep 1998 17:17:23 +0000 Subject: Patch from Ian Lance Taylor : 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. --- c/src/lib/libbsp/i386/pc386/startup/linkcmds | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/lib') diff --git a/c/src/lib/libbsp/i386/pc386/startup/linkcmds b/c/src/lib/libbsp/i386/pc386/startup/linkcmds index f66952b04c..5dd7a675a3 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/linkcmds +++ b/c/src/lib/libbsp/i386/pc386/startup/linkcmds @@ -62,6 +62,7 @@ SECTIONS _rodata_start = . ; *(.rodata) + *(.gnu.linkonce.r*) _erodata = ALIGN( 0x10 ) ; _etext = ALIGN( 0x10 ) ; -- cgit v1.2.3