Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Real-Time Software Components (RTSC) » mapping obj files contents to sections
mapping obj files contents to sections [message #524644] Thu, 01 April 2010 12:27
Patrick Geremia is currently offline Patrick Geremia
Messages: 79
Registered: July 2009
Member
In our current linker command files (TI c6000 linker), we have created
sections from obj files in a lib as groups and mapped them into memory
segments. See below for an example:

GROUP (RACFD_PRINT_LOG_PRINT)
{
.racfd_print_log_print
{
-lracfd.lib <RACFD_*_logPrint.obj> (.text)
-lracfd.lib <RACFD_*_logPrint.obj> (.const)
-lracfd.lib <RACFD_*_logPrint.obj> (.switch)
-lracfd.lib <RACFD_*_logPrint.obj> (.data)
-lracfd.lib <RACFD_*_logPrint.obj> (.bss)
-lracfd.lib <RACFD_*_logPrint.obj> (.data)
-lracfd.lib <RACFD_*_logPrint.obj> (.far)

-lracfd.lib <RACFD_*_print.obj> (.text)
-lracfd.lib <RACFD_*_print.obj> (.const)
-lracfd.lib <RACFD_*_print.obj> (.switch)
-lracfd.lib <RACFD_*_print.obj> (.data)
-lracfd.lib <RACFD_*_print.obj> (.bss)
-lracfd.lib <RACFD_*_print.obj> (.data)
-lracfd.lib <RACFD_*_print.obj> (.far)

-lracfd.lib <RACFD_*_literal*.obj> (.text)
-lracfd.lib <RACFD_*_literal*.obj> (.const)
-lracfd.lib <RACFD_*_literal*.obj> (.switch)
-lracfd.lib <RACFD_*_literal*.obj> (.data)
-lracfd.lib <RACFD_*_literal*.obj> (.bss)
-lracfd.lib <RACFD_*_literal*.obj> (.data)
-lracfd.lib <RACFD_*_literal*.obj> (.far)

-lracfd.lib <RACFD_facadeClassApi*.obj> (.text)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.const)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.switch)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.data)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.bss)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.data)
-lracfd.lib <RACFD_facadeClassApi*.obj> (.far)
}
} > EXT

How can we achieve this with XDCtools?

--
Patrick Geremia
Texas Instruments (http://www.ti.com)
Phone: +33 4 93 22 26 33
Email: p-geremia@ti.com
Availability: http://meetwith.me/patrickgeremia
Re: mapping obj files contents to sections [message #524653 is a reply to message #524644] Thu, 01 April 2010 08:04 Go to previous message
Dave Russo is currently offline Dave Russo
Messages: 172
Registered: July 2009
Senior Member
One possibility is to leverage the getSects() method; see
http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/IPackage.htm l#get.Sects

This method allows a package to contribute content to the generated
linker command file used to link an executable. The implementation of
this method, like that of getLibs(), is in the package's package.xs file.


On 4/1/2010 9:27 AM, Patrick Geremia wrote:
> In our current linker command files (TI c6000 linker), we have created
> sections from obj files in a lib as groups and mapped them into memory
> segments. See below for an example:
>
> GROUP (RACFD_PRINT_LOG_PRINT)
> {
> .racfd_print_log_print
> {
> -lracfd.lib <RACFD_*_logPrint.obj> (.text)
> -lracfd.lib <RACFD_*_logPrint.obj> (.const)
> -lracfd.lib <RACFD_*_logPrint.obj> (.switch)
> -lracfd.lib <RACFD_*_logPrint.obj> (.data)
> -lracfd.lib <RACFD_*_logPrint.obj> (.bss)
> -lracfd.lib <RACFD_*_logPrint.obj> (.data)
> -lracfd.lib <RACFD_*_logPrint.obj> (.far)
>
> -lracfd.lib <RACFD_*_print.obj> (.text)
> -lracfd.lib <RACFD_*_print.obj> (.const)
> -lracfd.lib <RACFD_*_print.obj> (.switch)
> -lracfd.lib <RACFD_*_print.obj> (.data)
> -lracfd.lib <RACFD_*_print.obj> (.bss)
> -lracfd.lib <RACFD_*_print.obj> (.data)
> -lracfd.lib <RACFD_*_print.obj> (.far)
>
> -lracfd.lib <RACFD_*_literal*.obj> (.text)
> -lracfd.lib <RACFD_*_literal*.obj> (.const)
> -lracfd.lib <RACFD_*_literal*.obj> (.switch)
> -lracfd.lib <RACFD_*_literal*.obj> (.data)
> -lracfd.lib <RACFD_*_literal*.obj> (.bss)
> -lracfd.lib <RACFD_*_literal*.obj> (.data)
> -lracfd.lib <RACFD_*_literal*.obj> (.far)
>
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.text)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.const)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.switch)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.data)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.bss)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.data)
> -lracfd.lib <RACFD_facadeClassApi*.obj> (.far)
> }
> } > EXT
>
> How can we achieve this with XDCtools?
>
Previous Topic:Warning: xdc.cfg.INCOMPATIBLE_TARGET_VERSION
Next Topic:disabling dependencies generation
Goto Forum:
  


Current Time: Tue Jul 29 13:16:50 EDT 2014

Powered by FUDForum. Page generated in 0.01713 seconds