[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pc386 linker script



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.

I've appended the trivial patch to
    c/src/lib/libbsp/i386/pc386/startup/linkcmds

It's possible that other linker scripts also omit these sections.  I
didn't look.

Is there any sort of ChangeLog or change listing for RTEMS?

Ian

--- linkcmds	1998/08/21 05:15:40	1.1.1.1
+++ linkcmds	1998/09/30 16:39:23
@@ -62,6 +62,7 @@
 
     _rodata_start = . ;
     *(.rodata)
+    *(.gnu.linkonce.r*)
     _erodata = ALIGN( 0x10 ) ;
 
     _etext = ALIGN( 0x10 ) ;