Pārlūkot izejas kodu

[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>
tags/v1.20.1
Michael Brown 9 gadus atpakaļ
vecāks
revīzija
dac866b066
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      src/arch/i386/prefix/unlzma.S

+ 3
- 0
src/arch/i386/prefix/unlzma.S Parādīt failu

@@ -232,6 +232,9 @@ literal:	.rept	( ( 1 << LZMA_LC ) * 0x300 )
232 232
 	.equ	sizeof__lzma_dec, . - lzma_dec
233 233
 	.previous
234 234
 
235
+	/* Some binutils versions seem not to handle .struct/.previous */
236
+	.section ".prefix.lib", "ax", @progbits
237
+
235 238
 /*****************************************************************************
236 239
  * Normalise range encoder
237 240
  *

Notiek ielāde…
Atcelt
Saglabāt