By default, all global symbols are written to the symdefs file. When a symdefs file exists, the linker uses its contents to restrict the output to a subset of the global symbols.
For an application image1
containing symbols
that you want to expose to another application using a symdefs file:
Specify
--symdefs=
when you are doing a final link forfilename
image1
. The linker creates a symdefs file
.filename
Open
in a text editor, remove any symbol entries you do not want in the final list, and save the file.filename
Specify
--symdefs=
when you are doing a final link forfilename
image1
.You can edit
at any time to add comments and linkfilename
image1
again, for example, to update the symbol definitions after one or more objects used to createimage1
have changed.
You can now use the symdefs file to link additional applications.
- Concepts
- Reference