[build] Work around binutils quirk on OpenBSD 5.7
authorMichael Brown <mcb30@ipxe.org>
Fri, 17 Apr 2015 23:53:27 +0000 (00:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 17 Apr 2015 23:53:27 +0000 (00:53 +0100)
commitdac866b06669ba17f4fdbad8405b7bbdd7114f1b
tree483c950b486d9fbecd47649c395ac01e9ed82e61
parentb594bfd490bce6c84289b528c1a97445b1c60884
[build] Work around binutils quirk on OpenBSD 5.7

The assembler on OpenBSD 5.7 seems not to correctly handle the
combinations of .struct and .previous used in unlzma.S, and ends up
complaining about an "attempt to allocate data in absolute section".

Work around this problem by explicitly resetting the section after the
data structure definitions.

Reported-by: Jiri B <jirib@devio.us>
Tested-by: Jiri B <jirib@devio.us>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/unlzma.S