Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
In an LDF file, how do I declare an object file list macro that contains no object files? If I declare something like $OBJLIST=; INPUT_SECTIONS($OBJLIST(seg_pmco)) This results in an E2008 and E1064 in the macro definition. If I comment out the empty definition but leave in the section declaration, I get an error: [Error E1171] Invalid filename. Please check the file extension for the file '$OBJLIST' I want to create a generic LDF file that lays out my target's memory map and include it from a build-specific LDF file which populates object file list macros before including the common file. For some builds, the list of files for some sections will be empty. The structure is something like this: main.ldf: ================================================================ $SLOWCODE0 = module0.doj; $SLOWCODE1 = module1.doj; #include "common.ldf" ================================================================ common.ldf: ================================================================ ... other stuff ... // section declarations for external SDRAM on 21065L out_ms0c0 SHT_PROGBITS { INPUT_SECTIONS($SLOWCODE0(seg_pmco)) _end_ms0c0 = .; PACKING(6 B0 B0 B5 B6 B0 B0 B1 B2 B3 B4 B0 B0) } > mem_ms0c0 out_ms0c1 SHT_PROGBITS { INPUT_SECTIONS($SLOWCODE1(seg_pmco)) _end_ms0c1 = .; PACKING(6 B0 B0 B5 B6 B0 B0 B1 B2 B3 B4 B0 B0) } > mem_ms0c1 ... other stuff ... ================================================================ Kenneth Porter Kensington Laboratories, Inc. mailto: http://www.kensingtonlabs.com |