OSDN Git Service

The current elf2flt.ld forgets to allow to put `gnu.linkonce.r*' sections
authorDavid McCullough <davidm@snapgear.com>
Thu, 6 Apr 2006 00:37:45 +0000 (00:37 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 6 Apr 2006 00:37:45 +0000 (00:37 +0000)
in the read-only data segment.

Philippe De Muyter <phdm@macqel.be>

elf2flt.ld

index 3a8cf15..0c2e71d 100644 (file)
@@ -25,6 +25,7 @@ SECTIONS {
 W_RODAT                *(.rodata)
 W_RODAT                *(.rodata1)
 W_RODAT                *(.rodata.*)
+W_RODAT                *(.gnu.linkonce.r*)
 
                /* This is special code area at the end of the normal
                   text section.  It contains a small lookup table at
@@ -53,7 +54,7 @@ W_RODAT               *(.rodata.*)
 R_RODAT                *(.rodata)
 R_RODAT                *(.rodata1)
 R_RODAT                *(.rodata.*)
-               *(.gnu.linkonce.r*)
+R_RODAT                *(.gnu.linkonce.r*)
                *(.data)
                *(.data1)
                *(.data.*)