auto-import changelog data from nasm-0.98-8.src.rpm

Tue Aug 07 2001 Trond Eivind Glomsrd <teg@redhat.com>
- Updated patch from H.J. Lu for bogus elf generation (#45986, verified by
    reporter)
This commit is contained in:
cvsdist 2004-09-09 08:56:45 +00:00
parent 7accfc2603
commit d9e3ccee01
2 changed files with 48 additions and 8 deletions

36
nasm-0.98-boguself2.patch Normal file
View File

@ -0,0 +1,36 @@
--- nasm-0.98/outelf.c.boguself Sun May 20 01:25:35 2001
+++ nasm-0.98/outelf.c Sun May 20 02:01:59 2001
@@ -548,7 +548,7 @@ static void elf_add_reloc (struct Sectio
r->symbol = 0;
for (i=0; i<nsects; i++)
if (segment == sects[i]->index)
- r->symbol = i+3;
+ r->symbol = i+2;
if (!r->symbol)
r->symbol = GLOBAL_TEMP_BASE + raa_read(bsym, segment);
}
@@ -922,13 +922,13 @@ static struct SAA *elf_build_symtab (lon
* Now some standard symbols defining the segments, for relocation
* purposes.
*/
- for (i = 1; i <= nsects+1; i++) {
+ for (i = 1; i <= nsects; i++) {
p = entry;
WRITELONG (p, 0); /* no symbol name */
WRITELONG (p, 0); /* offset zero */
WRITELONG (p, 0); /* size zero */
WRITESHORT (p, 3); /* local section-type thing */
- WRITESHORT (p, (i==1 ? SHN_ABS : i-1)); /* the section id */
+ WRITESHORT (p, i); /* the section id */
saa_wbytes (s, entry, 16L);
*len += 16;
(*local)++;
@@ -986,7 +986,7 @@ static struct SAA *elf_build_reltab (lon
long sym = r->symbol;
if (sym >= GLOBAL_TEMP_BASE)
- sym += -GLOBAL_TEMP_BASE + (nsects+3) + nlocals;
+ sym += -GLOBAL_TEMP_BASE + (nsects+2) + nlocals;
p = entry;
WRITELONG (p, r->address);

View File

@ -1,9 +1,9 @@
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
Summary: A portable x86 assembler which uses Intel-like syntax.
Name: nasm
Version: 0.98
Release: 7
Patch0: nasm-0.98-boguself.patch
License: GPL
Release: 8
Patch0: nasm-0.98-boguself2.patch
License: freely distributable
Group: Development/Languages
Source: ftp://ftp.us.kernel.org/pub/software/devel/nasm/source/nasm-%{version}.tar.gz
URL: http://www.cryogen.com/Nasm/
@ -12,7 +12,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/install-info
%package doc
Summary: Extensive documentation for NASM
Summary: Documentation for NASM.
Group: Development/Languages
%package rdoff
@ -25,12 +25,12 @@ NASM is the Netwide Assembler, a free portable assembler for the Intel
instruction mnemonics and syntax.
%description doc
Extensive documentation for the Netwide Assembler, NASM, in HTML,
info, PostScript and text formats.
This package contains documentation for the Netwide Assembler (NASM),
in HTML, info, PostScript, and text formats.
%description rdoff
Tools for the operating-system independent RDOFF binary format, which
is sometimes used with the Netwide Assembler (NASM). These tools
is sometimes used with the Netwide Assembler (NASM). These tools
include linker, library manager, loader, and information dump.
%prep
@ -90,6 +90,10 @@ fi
/usr/bin/rdx
%changelog
* Tue Aug 7 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Updated patch from H.J. Lu for bogus elf generation (#45986,
verified by reporter)
* Thu Apr 26 2001 Trond Eivind Glomsrød <teg@redhat.com>
- Updated patch for bogus elf generation from hjl@gnu.org