Filling Holes - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

7.15.3 Filling Holes

Another way to create a hole in an output section is to combine an uninitialized
section with an initialized section to form a single output section. In this case,
the linker treats the uninitialized section as a hole and supplies data for it. The
following example illustrates this method:
SECTIONS
{
outsect:
{
file1.obj(.text)
file1.obj(.bss)
}
}
Because the .text section has raw data, all of outsect must also contain raw
data (rule 1). Therefore, the uninitialized .bss section becomes a hole.
Uninitialized sections become holes only when they are combined with
initialized sections. If several uninitialized sections are linked together, the
resulting output section is also uninitialized.
When a hole exists in an initialized output section, the linker must supply raw
data to fill it. The linker fills holes with a 16-bit fill value that is replicated through
Creating and Filling Holes
/* This becomes a hole */
Linker Description
7-63

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents