The GCC for SPARC® Systems compiler option -xbinopt=prepare is used
to prepare a binary for analysis and improvement using the BIT tool.
There are also a few issues that may arise when using the
-xbinopt=prepare option:
If the -xbinopt=prepare
option is used with a linker mapfile that specifies object files
by name, the placement of the ELF sections from the specified
object files will not be honored in the resultant binary.
If there exists on the same link line, an archive library
that has a tentative definition of a global symbol, and a shared
library that has a definition of this same global symbol, and
if the placement of the archive library on the link line occurs
to the left of the shared library, there will be a link failure
with -xbinopt=prepare.
If there exists on the same link line, an archive library
and a shared library that define the same symbol, and if
the archive library occurs to the left of the shared library on
the link line, and if the archive library occurs to the
left of the object file that has an unresolved reference to this
symbol, and the -xbinopt=prepare option is
used, the resultant binary will have this unresolved reference
bound to the archive library and not the shared library as
expected.