If multiple objects result in the same veneer being created,
the linker creates a single instance of that veneer. The veneer
is then shared by those objects.
You can use the command-line option --no_veneershare to
specify that veneers are not shared. This assigns ownership of the
created veneer section to the object that created the veneer and
so enables you to select veneers from a particular object in a scatter
file, for example:
LR 0x8000
{
ER_ROOT +0
{
object1.o(Veneer$$Code)
}
}
Be aware that veneer sharing makes it impossible to assign
an owning object. Using --no_veneershare provides
a more consistent image layout. However, this comes at the cost
of a significant increase in code size, because of the extra veneers
generated by the linker.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.