outmacho: Fix the computation of non-external relocation offsets
commite1eb7b88803014a67f0c10478bb4a11d15ffb5a5
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 19:30:54 +0000 (16 11:30 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 19:30:54 +0000 (16 11:30 -0800)
treea2dd4f02a5b85cc13babddddbc5d3c9129a3c495
parent4e5fbcb81bc9ee65d2b6aa826e1a26c94701e1e9
outmacho: Fix the computation of non-external relocation offsets

When we clear the ext bit, creating section-relative relocations,
the resulting value is computed somewhat differently; we need to
adjust for that.

TODO: Need to make sure we do the right thing for ALL relocations.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
output/outmacho.c