From dac866b06669ba17f4fdbad8405b7bbdd7114f1b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 18 Apr 2015 00:53:27 +0100 Subject: [PATCH] [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 --- src/arch/i386/prefix/unlzma.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/i386/prefix/unlzma.S b/src/arch/i386/prefix/unlzma.S index 7250a030..8d4b3c1a 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 *