From: Michael Brown Date: Fri, 17 Apr 2015 23:53:27 +0000 (+0100) Subject: [build] Work around binutils quirk on OpenBSD 5.7 X-Git-Tag: v1.20.1~854 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dac866b06669ba17f4fdbad8405b7bbdd7114f1b;p=thirdparty%2Fipxe.git [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 Tested-by: Jiri B Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/prefix/unlzma.S b/src/arch/i386/prefix/unlzma.S index 7250a0309..8d4b3c1a8 100644 --- a/src/arch/i386/prefix/unlzma.S +++ b/src/arch/i386/prefix/unlzma.S @@ -232,6 +232,9 @@ literal: .rept ( ( 1 << LZMA_LC ) * 0x300 ) .equ sizeof__lzma_dec, . - lzma_dec .previous + /* Some binutils versions seem not to handle .struct/.previous */ + .section ".prefix.lib", "ax", @progbits + /***************************************************************************** * Normalise range encoder *