PROGBITS linking warning
joel.sherrill at OARcorp.com
Mon Oct 12 11:19:28 UTC 2009
Ralf Corsepius wrote:
> On 10/11/2009 07:52 PM, Joel Sherrill wrote:
>> The powerpc/haleakala has this warning when it links
>> 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 saw that but couldn't spot the important difference.
The ss555 has this warning also. I am testing the fix
there and will commit it if it works here.
>> 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:
> 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__ = .);
More information about the users