PROGBITS linking warning
Ralf Corsepius
ralf.corsepius at rtems.org
Mon Oct 12 03:50:02 UTC 2009
On 10/11/2009 07:52 PM, Joel Sherrill wrote:
> Hi,
>
> The powerpc/haleakala has this warning when it links
> executables:
>
> /opt/rtems-4.10/lib/gcc/powerpc-rtems4.10/4.4.1/../../../../powerpc-rtems4.10/bin/ld:
> warning: section `.sbss' type changed to PROGBITS
>
> I don't see this in other BSPs and can't spot the
> magic difference.
But I do - the halekala's linkcmds is quite different from most other
BSPs ;)
> I would like to eliminate this one. Help is appreciated.
This patch below seems to be doing the job.
Index: haleakala/startup/linkcmds
===================================================================
RCS file:
/usr1/CVS/rtems/c/src/lib/libbsp/powerpc/haleakala/startup/linkcmds,v
retrieving revision 1.3
diff -u -r1.3 linkcmds
--- haleakala/startup/linkcmds 16 Sep 2008 21:26:41 -0000 1.3
+++ haleakala/startup/linkcmds 12 Oct 2009 03:48:03 -0000
@@ -210,8 +210,7 @@
. = ALIGN (4);
PROVIDE(__SBSS_START__ = .);
sbss.start = .;
- *(.sbss*)
- *(.gnu.linkonce.sb.*);
+ *(.sbss .sbss.* *.gnu.linkonce.sb.*);
sbss.end = .;
} > RAM
PROVIDE(__SBSS_END__ = .);
Ralf
More information about the users
mailing list