A simple question about the linker script

xu ray rayx.cn at gmail.com
Sun Oct 19 10:24:17 UTC 2008


It is would be fine to use the default ld script give by the arm-rtems-ld
--verbose. However, most of the time, you do not need all the sections given
by default script. You can remove the section you do not need( e.g .tdata in
your case.)

2008/10/17 PowerMan <powerman1st at gmail.com>

> I have compared the linker script of the gp32-bsp (arm920, s3c2400) and the
> default lds of arm-rtems-gcc (could be shown by arm-rtems-ld --verbose).
>
> I found that there are several segment appeared in default lds
> but not gp32 lds. Such as
>
>   .tdata      : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
>   .tbss          : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
>   .got            : { *(.got.plt) *(.got) }
>   .rel.dyn        :
>     {
>       *(.rel.init)
>       *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
>       *(.rel.fini)
>       *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
>       *(.rel.data.rel.ro* .rel.gnu.linkonce.d.rel.ro.*)
>       *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
>       *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
>       *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
>       *(.rel.ctors)
>       *(.rel.dtors)
>       *(.rel.got)
>       *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
>     }
>
> Would it do harm to the integrality of the gp32 final target image ?
>
> Thanks.
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
>


-- 
Thanks & Best Regards!

Ray, Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20081019/7c38cf51/attachment-0001.html>


More information about the users mailing list