outmac: generate section-relative relocations for local symbols
commit941356b2ca5499469ec31427b18019b5456b7606
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 12 Feb 2016 23:06:23 +0000 (12 15:06 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 12 Feb 2016 23:06:23 +0000 (12 15:06 -0800)
treee26e556963ce782afbbfae951572d9a10eeae7ac
parentca351fa1756a47d70b9fa7db6fe6ad8c9ab0d8c6
outmac: generate section-relative relocations for local symbols

We generate section-relative relocations for local symbols for all
the other output formats, and we should do the same for MachO;
this was done in MachO-32 but not in MachO-64, presumably because
the MachO spec implies that such relocations shouldn't exist in
64-bit code.  They are indeed rare, but that is a programmer's
decision, and the spec is clear that they are legal.

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