|
|||||||||||
|
Technical Support On-Line Manuals Linker Reference Guide |
Linker Reference GuideRESOLVE
The RESOLVE command matches specific undefined references to a defined global symbol.
where:
RESOLVE is an extension of the existing armlink The undefined references are removed from the output symbol table. RESOLVE works when performing partial-linking and when linking normally. You might have two files Example 4. Using the RESOLVE command
file1.c
extern int foo;
extern void MP3_Init(void);
extern void MP3_Play(void);
int main(void)
{
int x = foo + 1;
MP3_Init();
MP3_Play();
return x;
}
file2.c:
int foobar;
void MyMP3_Init()
{
}
void MyMP3_Play()
{
}
Create a steering file,
Enter the following command:
armlink file1.o file2.o --edit ed.txt --unresolved foobar
This command has the following effects:
| ||||||||||
|
|||||||||||