macho: Turn off jump-match optimization for subsections_via_symbols
commitb8d153eb4dee2ac22fc09cfba99dbae48c724b88
authorChang S. Bae <chang.seok.bae@intel.com>
Mon, 13 Aug 2018 20:50:18 +0000 (13 13:50 -0700)
committerCyrill Gorcunov <gorcunov@gmail.com>
Wed, 15 Aug 2018 21:01:38 +0000 (16 00:01 +0300)
treec017964dc8cd4bd791a8e9153f805397b583e20b
parenta578634b61615a4a0d5e51b1d1b046efdbd9867d
macho: Turn off jump-match optimization for subsections_via_symbols

The jump-match optimization tends to remove labels. When the
"subsections_via_symbols" pragma is declared, all the labels
should be emitted. Disabling the optimization (only) makes
the pragma effective.

It might be cleaner to extend the OFMT interface to support
callback function. In this case, the reconfiguration can be
done through the callback interface, rather than direct
access to the global variable.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
output/outmacho.c