Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | Using empty object macros in LDF files

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

Using empty object macros in LDF files - Kenneth Porter - Apr 20 3:10:00 2000



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




(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )