outmacho: Allow arbitrary MachO sections, avoid bss lookup
commitd1da074b837cd8f56f2eca3e622cdfe2de20dbec
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 20:39:26 +0000 (16 12:39 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 20:39:26 +0000 (16 12:39 -0800)
tree88544296eaebab563d51180c4d0d029f114420a5
parent615ef1a6f848d33cf90f70c77e7934fbd56fcd42
outmacho: Allow arbitrary MachO sections, avoid bss lookup

Allow specifying sections with arbitary MachO segment and section
names, as opposed to having a fixed list of supported sections
(especially __DATA,__const is wrong in some cases.)  Furthermore,
we do a completely unnecessary lookup of the bss section *for every
call to macho_output()* which is just plain crazy.

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