x86: Update asm-differ and fix some incorrect objdump output by using mingw instead of msdosdjgpp. (#1104)

* x86: Update asm-differ and fix some incorrect objdump output by using mingw instead of msdosdjgpp.

* Fix spelling mistake

* Fix oversight in diff_wrapper
This commit is contained in:
Christian
2024-02-27 11:59:42 -07:00
committed by GitHub
parent 36d92ce40e
commit 4fe7304547
5 changed files with 9 additions and 4 deletions
+1
View File
@@ -48,6 +48,7 @@ jobs:
binutils-mips-linux-gnu \
binutils-powerpc-linux-gnu \
binutils-sh-elf \
binutils-mingw-w64-i686 \
dos2unix \
libprotobuf-dev \
libnl-route-3-dev \
+1
View File
@@ -40,6 +40,7 @@ RUN apt-get -y update && apt-get install -y \
binutils-mips-linux-gnu \
binutils-powerpc-linux-gnu \
binutils-sh-elf \
binutils-mingw-w64-i686 \
ca-certificates \
curl \
dos2unix \
+3
View File
@@ -262,6 +262,9 @@ class DiffWrapper:
config,
objdump_flags,
)
# hack to ignore functions other than the one we want to diff, in case debug flags cause inlined/template functions to be included in the diff (it happens)
if platform.id in ["win32"] and diff_label is not None and diff_label:
objdump_flags += [f"--disassemble={diff_label}"]
try:
mydump = DiffWrapper.get_dump(
compiled_elf, platform, diff_label, config, objdump_flags
+3 -3
View File
@@ -83,9 +83,9 @@ WIN32 = Platform(
name="Windows (9x/NT)",
description="x86 (32bit)",
arch="i686",
assemble_cmd='i386-pc-msdosdjgpp-as --32 -mmnemonic=intel -msyntax=intel -mnaked-reg -o "$OUTPUT" "$INPUT"',
objdump_cmd="i386-pc-msdosdjgpp-objdump",
nm_cmd="i386-pc-msdosdjgpp-nm",
assemble_cmd='i686-w64-mingw32-as --32 -mmnemonic=intel -msyntax=intel -mnaked-reg -o "$OUTPUT" "$INPUT"',
objdump_cmd="i686-w64-mingw32-objdump",
nm_cmd="i686-w64-mingw32-nm",
asm_prelude="",
)
+1 -1
View File
@@ -51,7 +51,7 @@ watchdog = "^2.2.0"
type = "git"
url = "https://github.com/simonlindholm/asm-differ.git"
reference = "HEAD"
resolved_reference = "6a710eb110f44339d35efece4f993d2ce00cef67"
resolved_reference = "2ad88533f676a2e5c1dc038caf60897b150718fd"
[[package]]
name = "attrs"