PROGBITS linking warning

Joel Sherrill joel.sherrill at OARcorp.com
Mon Oct 12 20:58:35 UTC 2009


Ralf.. do you see the missing bit on the ss555 linkcmds?

--joel

Joel Sherrill wrote:
> Ralf Corsepius wrote:
>   
>> 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 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.
>
> Thanks.
>   
>>   
>>     
>>> 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
>>   
>>     
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list