From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- .../74184586228af6c362f970c84fce58da3fcbdec8.patch | 18 ++++++++++++ repo/yasm/yasm.xibuild | 33 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 repo/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch create mode 100644 repo/yasm/yasm.xibuild (limited to 'repo/yasm') diff --git a/repo/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch b/repo/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch new file mode 100644 index 0000000..3ec24e6 --- /dev/null +++ b/repo/yasm/74184586228af6c362f970c84fce58da3fcbdec8.patch @@ -0,0 +1,18 @@ +commit 74184586228af6c362f970c84fce58da3fcbdec8 +Author: Matt Oliver +Date: Tue Apr 4 00:34:47 2017 +1000 + + fix memory errors when using gas processor with coff object output. + +diff --git a/modules/objfmts/coff/coff-objfmt.c b/modules/objfmts/coff/coff-objfmt.c +index 6fcb0e3c..8f753bfe 100644 +--- a/modules/objfmts/coff/coff-objfmt.c ++++ b/modules/objfmts/coff/coff-objfmt.c +@@ -290,6 +290,7 @@ coff_common_create(yasm_object *object) + objfmt_coff->done_prolog = 0; + objfmt_coff->unwind = NULL; + objfmt_coff->ssym_imagebase = NULL; ++ objfmt_coff->def_sym = NULL; + + return objfmt_coff; + } diff --git a/repo/yasm/yasm.xibuild b/repo/yasm/yasm.xibuild new file mode 100644 index 0000000..f6c12b5 --- /dev/null +++ b/repo/yasm/yasm.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="yasm" +DESC="A rewrite of NASM to allow for multiple syntax supported (NASM, TASM, GAS, etc.)" + +MAKEDEPS="" + +PKG_VER=1.3.0 +SOURCE="http://www.tortall.net/projects/yasm/releases/yasm-$PKG_VER.tar.gz" + +ADDITIONAL=" +74184586228af6c362f970c84fce58da3fcbdec8.patch +" + +prepare() { + apply_patches +} + +build() { + ./configure \ + --prefix=/usr + make +} + +check() { + make -j1 check +} + +package() { + make DESTDIR="$PKG_DEST" install + install -Dm644 COPYING "$PKG_DEST"/usr/share/licenses/yasm/COPYING +} + -- cgit v1.2.1