outmacho: if .rodata contains no relocations, change it to __TEXT,__const
commit6fc2b123afaaf57577581a7680aa41fe101fd86b
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 20:56:27 +0000 (16 12:56 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 16 Feb 2016 20:56:27 +0000 (16 12:56 -0800)
treebfce6df922d9a71bcecbe707c5c2eccb7a99c476
parentd1da074b837cd8f56f2eca3e622cdfe2de20dbec
outmacho: if .rodata contains no relocations, change it to __TEXT,__const

If we specify .rodata as opposed to the explicit __DATA,__const, and
we end up with no relocations, change it to __TEXT,__const per the
Mach-O ABI.  However, it is generally better for the programmer to
explicitly specify the items that should go into __TEXT,__const as
otherwise a single relocatable item will force the whole thing into
__DATA.

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