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

PROGBITS linking warning



On 10/12/2009 10:58 PM, Joel Sherrill wrote:
> Ralf.. do you see the missing bit on the ss555 linkcmds?

Yes, ...

This patch seems to fix it:

--- startup/linkcmds    25 Aug 2009 19:09:31 -0000      1.7
+++ startup/linkcmds    13 Oct 2009 03:43:14 -0000
@@ -198,25 +198,24 @@
      data.end = .;
    }
    data.size = data.end - data.start;
-
+
+  bss.start = .;
+  .sbss          :
+  {
+    PROVIDE (__sbss_start = .); PROVIDE (___sbss_start = .);
+    *(.dynsbss)
+    *(.sbss .sbss.* .gnu.linkonce.sb.*)
+    *(.scommon)
+    PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .);
+  }
    .bss :
    {
-    bss.start = .;
-
-    PROVIDE (__SBSS2_START__ = .);
-    *(.sbss2)
-    PROVIDE (__SBSS2_END__ = .);
-
-    PROVIDE (__SBSS_START__ = .);
-    *(.sbss*)
-    PROVIDE (__SBSS_END__ = .);
-
+    *(.dynbss)
      *(.bss .bss* .gnu.linkonce.b*)
      *(COMMON)
-
      . = ALIGN(4);
-    bss.end = .;
    }
+  bss.end = .;
    bss.size = bss.end - bss.start;

    PROVIDE(_end = bss.end);