xz/src
Yifeng Li 6cd7c86078 liblzma: Fix x86-64 movzw compatibility in range_decoder.h
Support for instruction "movzw" without suffix in "GNU as" was
added in commit [1] and stabilized in binutils 2.27, released
in August 2016. Earlier systems don't accept this instruction
without a suffix, making range_decoder.h's inline assembly
unable to build on old systems such as Ubuntu 16.04, creating
error messages like:

    lzma_decoder.c: Assembler messages:
    lzma_decoder.c:371: Error: no such instruction: `movzw 2(%r11),%esi'
    lzma_decoder.c:373: Error: no such instruction: `movzw 4(%r11),%edi'
    lzma_decoder.c:388: Error: no such instruction: `movzw 6(%r11),%edx'
    lzma_decoder.c:398: Error: no such instruction: `movzw (%r11,%r14,4),%esi'

Change "movzw" to "movzwl" for compatibility.

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c07315e0c610e0e3317b4c02266f81793df253d2

Suggested-by: Lasse Collin <lasse.collin@tukaani.org>
Tested-by: Yifeng Li <tomli@tomli.me>
Signed-off-by: Yifeng Li <tomli@tomli.me>
Fixes: 3182a330c1
Fixes: https://github.com/tukaani-project/xz/issues/121
Closes: https://github.com/tukaani-project/xz/pull/136
2024-08-22 10:59:08 +03:00
..
common Windows: Drop Visual Studio 2013 support 2024-06-20 21:53:07 +03:00
liblzma liblzma: Fix x86-64 movzw compatibility in range_decoder.h 2024-08-22 10:59:08 +03:00
lzmainfo Build: Install translated lzmainfo man pages. 2024-02-17 16:23:14 +02:00
scripts Fix typos 2024-05-18 00:34:07 +03:00
xz xz: Remove the TODO comment about --recursive 2024-07-06 14:04:48 +03:00
xzdec xzdec: Support Landlock ABI version 4 2024-04-30 22:24:13 +03:00
Makefile.am Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00