Accepting request 364175 from devel:tools:compiler
1 OBS-URL: https://build.opensuse.org/request/show/364175 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nasm?expand=0&rev=32
This commit is contained in:
commit
715b81922d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c99467c7072211c550d147640d8a1a0aa4d636d4d8cf849f3bf4317d900a1f7f
|
|
||||||
size 764872
|
|
3
nasm-2.12.tar.xz
Normal file
3
nasm-2.12.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f34cc1e984ed619b8f9e96cea632e3c6fdea5e039069dbcb63397b7bd004f5a8
|
||||||
|
size 774808
|
42
nasm.changes
42
nasm.changes
@ -1,3 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 2 11:36:33 UTC 2016 - normand@linux.vnet.ibm.com
|
||||||
|
|
||||||
|
- new nasm_change_unused.patch to avoid PowerPC build error
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 1 07:48:37 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Update to 2.12
|
||||||
|
* Major fixes to the macho backend (section 7.8); earlier
|
||||||
|
versions would produce invalid symbols and relocations on a
|
||||||
|
regular basis.
|
||||||
|
* Support for thread-local storage in Mach-O.
|
||||||
|
* Support for arbitrary sections in Mach-O.
|
||||||
|
* Fix wrong negative size treated as a big positive value passed
|
||||||
|
into backend causing NASM to crash.
|
||||||
|
* Fix handling of zero-extending unsigned relocations, we have
|
||||||
|
been printing wrong message and forgot to assign segment with
|
||||||
|
predefined value before passing it into output format.
|
||||||
|
* Fix potential write of oversized (with size greater than
|
||||||
|
allowed in output format) relative relocations.
|
||||||
|
* Portability fixes for building NASM with LLVM compiler.
|
||||||
|
* Add support of Codeview version 8 (cv8) debug format for win32
|
||||||
|
and win64 formats in the COFF backend, see section 7.5.3.
|
||||||
|
* Allow 64-bit outputs in 16/32-bit only backends. Unsigned
|
||||||
|
64-bit relocations are zero-extended from 32-bits with a
|
||||||
|
warning (suppressible via -w-zext-reloc); signed 64-bit
|
||||||
|
relocations are an arror.
|
||||||
|
* Line numbers in list files now correspond to the lines in the
|
||||||
|
source files, instead of simply being sequential.
|
||||||
|
* There is now an official 64-bit (x64 a.k.a. x86-64) build for
|
||||||
|
Windows.
|
||||||
|
- Changes for 2.11.09
|
||||||
|
* Fix potential stack overwrite in macho32 backend.
|
||||||
|
* Fix relocation records in macho64 backend.
|
||||||
|
* Fix symbol lookup computation in macho64 backend.
|
||||||
|
* Adjust .symtab and .rela.text sections alignments to 8 bytes
|
||||||
|
in elf64 backed.
|
||||||
|
* Fix section length computation in bin backend which leaded in
|
||||||
|
incorrect relocation records.
|
||||||
|
- Update build dependencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 24 08:36:37 UTC 2015 - mpluskal@suse.com
|
Tue Feb 24 08:36:37 UTC 2015 - mpluskal@suse.com
|
||||||
|
|
||||||
|
42
nasm.spec
42
nasm.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package nasm
|
# spec file for package nasm
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,15 +17,19 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: nasm
|
Name: nasm
|
||||||
Version: 2.11.08
|
Version: 2.12
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Netwide Assembler (An x86 Assembler)
|
Summary: Netwide Assembler (An x86 Assembler)
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Url: http://www.nasm.us/
|
Url: http://www.nasm.us/
|
||||||
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
|
||||||
|
Patch1: nasm_change_unused.patch
|
||||||
|
BuildRequires: asciidoc
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: groff
|
||||||
BuildRequires: makeinfo
|
BuildRequires: makeinfo
|
||||||
|
BuildRequires: xmlto
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -36,6 +40,7 @@ Read the licence agreement in %{_docdir}/nasm/Licence.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for Nasm
|
Summary: Documentation for Nasm
|
||||||
@ -56,8 +61,7 @@ sed -i "s/__DATE__/\"$TS\"/g" ver.c
|
|||||||
touch -r ./ver.c.stamp ./ver.c
|
touch -r ./ver.c.stamp ./ver.c
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags} all
|
make %{?_smp_mflags} all
|
||||||
|
make %{?_smp_mflags} -C doc html info nasmdoc.ps nasmdoc.txt
|
||||||
make -C doc %{?_smp_mflags} html info nasmdoc.ps nasmdoc.txt
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 %{buildroot}%{_prefix}/bin
|
install -d -m 755 %{buildroot}%{_prefix}/bin
|
||||||
@ -75,22 +79,42 @@ install -m 644 rdoff/README rdoff/doc/* \
|
|||||||
install -m 644 doc/html/* %{buildroot}%{_docdir}/nasm/html
|
install -m 644 doc/html/* %{buildroot}%{_docdir}/nasm/html
|
||||||
install -m 644 ndisasm.1 nasm.1 rdoff/*.1 %{buildroot}%{_mandir}/man1
|
install -m 644 ndisasm.1 nasm.1 rdoff/*.1 %{buildroot}%{_mandir}/man1
|
||||||
install -m 644 doc/info/* %{buildroot}%{_infodir}
|
install -m 644 doc/info/* %{buildroot}%{_infodir}
|
||||||
%fdupes -s %{buildroot}%/*
|
%fdupes -s %{buildroot}%
|
||||||
|
|
||||||
%post doc
|
%post doc
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%postun doc
|
%preun doc
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/*
|
%{_bindir}/ldrdf
|
||||||
%doc %{_mandir}/man1/*.1.gz
|
%{_bindir}/nasm
|
||||||
|
%{_bindir}/ndisasm
|
||||||
|
%{_bindir}/rdf2bin
|
||||||
|
%{_bindir}/rdf2com
|
||||||
|
%{_bindir}/rdf2ihx
|
||||||
|
%{_bindir}/rdf2ith
|
||||||
|
%{_bindir}/rdf2srec
|
||||||
|
%{_bindir}/rdfdump
|
||||||
|
%{_bindir}/rdflib
|
||||||
|
%{_bindir}/rdx
|
||||||
|
%{_mandir}/man1/ldrdf.1%{ext_man}
|
||||||
|
%{_mandir}/man1/nasm.1%{ext_man}
|
||||||
|
%{_mandir}/man1/ndisasm.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdf2bin.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdf2com.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdf2ihx.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdf2ith.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdf2srec.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdfdump.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdflib.1%{ext_man}
|
||||||
|
%{_mandir}/man1/rdx.1%{ext_man}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %{_docdir}/nasm
|
%doc %{_docdir}/nasm
|
||||||
%doc %{_infodir}/nasm*
|
%{_infodir}/nasm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
42
nasm_change_unused.patch
Normal file
42
nasm_change_unused.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
From: Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
Subject: nasm change unused
|
||||||
|
Date: Wed, 02 Mar 2016 12:38:37 +0100
|
||||||
|
|
||||||
|
nasm change _unused to xunused to avoid conflict
|
||||||
|
when building on PowerPC
|
||||||
|
|
||||||
|
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
---
|
||||||
|
compiler.h | 4 ++--
|
||||||
|
output/outmacho.c | 2 +-
|
||||||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
Index: nasm-2.12/compiler.h
|
||||||
|
===================================================================
|
||||||
|
--- nasm-2.12.orig/compiler.h
|
||||||
|
+++ nasm-2.12/compiler.h
|
||||||
|
@@ -82,9 +82,9 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
-# define _unused __attribute__((unused))
|
||||||
|
+# define xunused __attribute__((unused))
|
||||||
|
#else
|
||||||
|
-# define _unused
|
||||||
|
+# define xunused
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Some versions of MSVC have these only with underscores in front */
|
||||||
|
Index: nasm-2.12/output/outmacho.c
|
||||||
|
===================================================================
|
||||||
|
--- nasm-2.12.orig/output/outmacho.c
|
||||||
|
+++ nasm-2.12/output/outmacho.c
|
||||||
|
@@ -301,7 +301,7 @@ static uint64_t rel_padcnt = 0;
|
||||||
|
ALIGN(x, fmt.ptrsize) /* align x to output format width */
|
||||||
|
|
||||||
|
static void debug_reloc (struct reloc *);
|
||||||
|
-static void debug_section_relocs (struct section *) _unused;
|
||||||
|
+static void debug_section_relocs (struct section *) xunused;
|
||||||
|
|
||||||
|
static struct section *get_section_by_name(const char *segname,
|
||||||
|
const char *sectname)
|
Loading…
Reference in New Issue
Block a user