How to ensure re-implemented mutex
functions are called
If your re-implemented_mutex_*() functions
are within an object that is contained within a library file, the
linker does not automatically include the object. This can result
in the _mutex_*() functions
being excluded from the image you have built. To avoid this problem,
that is, to ensure that your _mutex_*() functions
are called, you can either:
Place your mutex functions in a non-library
object file. This helps to ensure that they are resolved at link
time.
Place your mutex functions in a library object file,
and arrange a non-weak reference to something in the object.
Place your mutex functions in a library object file,
and have the linker explicitly extract the specific object from
the library on the command line by writing libraryname.a(objectfilename.o) when
you invoke 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.