This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

relocatable segments

I have several pieces of data (all C code) sprinkled across several modules that I want to group into a single area of memory at link time. How do I go about this? Thanks in advance for the help.

Parents
  • Use the linker's CODE directive to specify these segments in theorder you want them located. For example, if you want them to start at 2000h, you would use something like...

    BL51 ... CODE(?PR?func?module(0x2000),?PR?func2?module2, ...)

    Take a look at the linker manual for more details.

    Jon

Reply
  • Use the linker's CODE directive to specify these segments in theorder you want them located. For example, if you want them to start at 2000h, you would use something like...

    BL51 ... CODE(?PR?func?module(0x2000),?PR?func2?module2, ...)

    Take a look at the linker manual for more details.

    Jon

Children
No data