help with scatter linking and ARM RVCT tools

hi, i'm having some difficulty with the ARM scatter linker and i could really use some help. i am using RVCT 2.1; the linker build is 558.

basically i want to link a large number of objects across a multiple independent sections. i don't want to manually indicate which files go into each section (as section sizes and object sizes will change over time); i want the linker to make these choices. i want to use a wildcard to select all the object files (*.o* for example) and then leave it to armlink to handle the rest. the problem is that the linker can't seem to handle this properly at all. i've tried two methods which have both failed.

  1. use *.o* in multiple sections. this failed as not all files could be placed in the first section. this will always be the case; the last section in the scatterlink file is the largest one but i also want armlink to place files into it last.

  1. use the same section name for multiple sections which have *.o* as the object list. this caused a syntax error.

any ideas on how to do this? i've considered some post-processing tricks where i'd autogenerate a list of files and modify the scatter link file between compile and link, but i found out that the linker can add extra code to thumb object to perform veneering of calls outside of a 16 bit address range, so the size of the object files at compile time might not be the same as the size of objects at link time, greatly complicating matters.

thanks for the help, it's really appreciated.

ethan

(x-posted to comp.sys.arm)

Reply to
ethan
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.