1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY NASM-download-http "&sourceforge-repo;/nasm/nasm-&NASM-version;.tar.bz2">
|
---|
8 | <!ENTITY NASM-download-ftp " ">
|
---|
9 | <!ENTITY NASM-md5sum "d8934231e81874c29374ddef1fbdb1ed">
|
---|
10 | <!ENTITY NASM-size "768 KB">
|
---|
11 | <!ENTITY NASM-buildsize "21.5 MB (includes building and installing all docs)">
|
---|
12 | <!ENTITY NASM-time "0.3 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="NASM" xreflabel="NASM-&NASM-version;">
|
---|
16 | <?dbhtml filename="NASM.html" ?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>NASM-&NASM-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="NASM">
|
---|
26 | <primary sortas="a-NASM">NASM</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to NASM</title>
|
---|
31 |
|
---|
32 | <para><application>NASM</application> (Netwide Assembler)
|
---|
33 | is an 80x86 assembler designed for portability and modularity. It includes a
|
---|
34 | disassembler as well.</para>
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>Download (HTTP): <ulink url="&NASM-download-http;"/></para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>Download (FTP): <ulink url="&NASM-download-ftp;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download MD5 sum: &NASM-md5sum;</para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download size: &NASM-size;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Estimated disk space required: &NASM-buildsize;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated build time: &NASM-time;</para>
|
---|
55 | </listitem>
|
---|
56 | </itemizedlist>
|
---|
57 | <!--
|
---|
58 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
59 | <itemizedlist spacing="compact">
|
---|
60 | <listitem>
|
---|
61 | <para>Required patch to fix a buffer overrun vulnerability: <ulink
|
---|
62 | url="&patch-root;/nasm-&NASM-version;-security_fix-1.patch"/></para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 | -->
|
---|
66 | <bridgehead renderas="sect3">NASM Dependencies</bridgehead>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect4">Optional (for Building Documentation)</bridgehead>
|
---|
69 | <para role="optional"><xref linkend="tetex"/>, and
|
---|
70 | <!-- <xref linkend="espgs"/> or --><xref linkend="gs"/></para>
|
---|
71 |
|
---|
72 | <para condition="html" role="usernotes">User Notes:
|
---|
73 | <ulink url="&blfs-wiki;/nasm"/></para>
|
---|
74 |
|
---|
75 | </sect2>
|
---|
76 |
|
---|
77 | <sect2 role="installation">
|
---|
78 | <title>Installation of NASM</title>
|
---|
79 |
|
---|
80 | <para>Install <application>NASM</application> by running
|
---|
81 | the following commands:</para>
|
---|
82 |
|
---|
83 | <screen><userinput>./configure --prefix=/usr &&
|
---|
84 | make &&
|
---|
85 | make -C rdoff/doc &&
|
---|
86 | make -C rdoff/doc html</userinput></screen>
|
---|
87 |
|
---|
88 | <para>To build the base <application>NASM</application> documentation,
|
---|
89 | ensure you have <application>Ghostscript</application> installed and issue:</para>
|
---|
90 |
|
---|
91 | <screen><userinput>make doc</userinput></screen>
|
---|
92 |
|
---|
93 | <para>To build the RDOFF Postscript documentation,
|
---|
94 | ensure you have <xref linkend="tetex"/> installed and issue:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>sed -i -e "s/dvips \$</& -o rdoff.ps/" rdoff/doc/Makefile &&
|
---|
97 | make -C rdoff/doc ps</userinput></screen>
|
---|
98 |
|
---|
99 | <para>To build the RDOFF PDF documentation, ensure you have
|
---|
100 | <application>Ghostscript</application> installed and issue:</para>
|
---|
101 |
|
---|
102 | <screen><userinput>make -C rdoff/doc pdf</userinput></screen>
|
---|
103 |
|
---|
104 | <para>This package does not come with a test suite.</para>
|
---|
105 |
|
---|
106 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
107 |
|
---|
108 | <screen role="root"><userinput>make install &&
|
---|
109 | make install_rdf &&
|
---|
110 | install -v -m644 rdoff/doc/rdoff.info /usr/share/info &&
|
---|
111 | install -v -m755 -d /usr/share/doc/nasm/html &&
|
---|
112 | install -v -m644 rdoff/doc/v1-v2.txt /usr/share/doc/nasm &&
|
---|
113 | cp -v -R rdoff/doc/rdoff /usr/share/doc/nasm/html</userinput></screen>
|
---|
114 |
|
---|
115 | <para>If you built the <application>Ghostscript</application> generated
|
---|
116 | documentation, install it using the following commands as the
|
---|
117 | <systemitem class="username">root</systemitem> user:</para>
|
---|
118 |
|
---|
119 | <screen role="root"><userinput>make install_doc &&
|
---|
120 | install -v -m644 rdoff/doc/rdoff.pdf /usr/share/doc/nasm</userinput></screen>
|
---|
121 |
|
---|
122 | <para>Lastly, if you built the RDOFF Postscript documentation, install it
|
---|
123 | using the following command as the
|
---|
124 | <systemitem class="username">root</systemitem> user:</para>
|
---|
125 |
|
---|
126 | <screen role="root"><userinput>install -v -m644 rdoff/doc/rdoff.ps /usr/share/doc/nasm</userinput></screen>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="content">
|
---|
131 | <title>Contents</title>
|
---|
132 |
|
---|
133 | <segmentedlist>
|
---|
134 | <segtitle>Installed Programs</segtitle>
|
---|
135 | <segtitle>Installed Libraries</segtitle>
|
---|
136 | <segtitle>Installed Directories</segtitle>
|
---|
137 |
|
---|
138 | <seglistitem>
|
---|
139 | <seg>nasm, ndisasm, ldrdf, rdf2bin, rdf2com, rdf2ihx, rdf2ith, rdf2srec,
|
---|
140 | rdfdump, rdflib, and rdx</seg>
|
---|
141 | <seg>None</seg>
|
---|
142 | <seg>/usr/share/doc/nasm</seg>
|
---|
143 | </seglistitem>
|
---|
144 | </segmentedlist>
|
---|
145 |
|
---|
146 | <variablelist>
|
---|
147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
148 | <?dbfo list-presentation="list"?>
|
---|
149 | <?dbhtml list-presentation="table"?>
|
---|
150 |
|
---|
151 | <varlistentry id="nasm-prog">
|
---|
152 | <term><command>nasm</command></term>
|
---|
153 | <listitem>
|
---|
154 | <para>is a portable 80x86 assembler.</para>
|
---|
155 | <indexterm zone="NASM nasm-prog">
|
---|
156 | <primary sortas="b-nasm">nasm</primary>
|
---|
157 | </indexterm>
|
---|
158 | </listitem>
|
---|
159 | </varlistentry>
|
---|
160 |
|
---|
161 | <varlistentry id="ndisasm">
|
---|
162 | <term><command>ndisasm</command></term>
|
---|
163 | <listitem>
|
---|
164 | <para>is an 80x86 binary file disassembler.</para>
|
---|
165 | <indexterm zone="NASM ndisasm">
|
---|
166 | <primary sortas="b-ndisasm">ndisasm</primary>
|
---|
167 | </indexterm>
|
---|
168 | </listitem>
|
---|
169 | </varlistentry>
|
---|
170 |
|
---|
171 | <varlistentry id="ldrdf">
|
---|
172 | <term><command>ldrdf</command></term>
|
---|
173 | <listitem>
|
---|
174 | <para>is an RDOFF linker.</para>
|
---|
175 | <indexterm zone="NASM ldrdf">
|
---|
176 | <primary sortas="b-ldrdf">ldrdf</primary>
|
---|
177 | </indexterm>
|
---|
178 | </listitem>
|
---|
179 | </varlistentry>
|
---|
180 |
|
---|
181 | <varlistentry id="rdf2bin">
|
---|
182 | <term><command>rdf2bin</command></term>
|
---|
183 | <listitem>
|
---|
184 | <para>converts an RDOFF object file to flat binary.</para>
|
---|
185 | <indexterm zone="NASM rdf2bin">
|
---|
186 | <primary sortas="b-rdf2bin">rdf2bin</primary>
|
---|
187 | </indexterm>
|
---|
188 | </listitem>
|
---|
189 | </varlistentry>
|
---|
190 |
|
---|
191 | <varlistentry id="rdfdump">
|
---|
192 | <term><command>rdfdump</command></term>
|
---|
193 | <listitem>
|
---|
194 | <para>dumps the contents of an RDOFF file.</para>
|
---|
195 | <indexterm zone="NASM rdfdump">
|
---|
196 | <primary sortas="b-rdfdump">rdfdump</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 |
|
---|
201 | <varlistentry id="rdflib">
|
---|
202 | <term><command>rdflib</command></term>
|
---|
203 | <listitem>
|
---|
204 | <para>is an RDOFF librarian.</para>
|
---|
205 | <indexterm zone="NASM rdflib">
|
---|
206 | <primary sortas="b-rdflib">rdflib</primary>
|
---|
207 | </indexterm>
|
---|
208 | </listitem>
|
---|
209 | </varlistentry>
|
---|
210 |
|
---|
211 | <varlistentry id="rdx">
|
---|
212 | <term><command>rdx</command></term>
|
---|
213 | <listitem>
|
---|
214 | <para>is used to load and execute an RDOFF module.</para>
|
---|
215 | <indexterm zone="NASM rdx">
|
---|
216 | <primary sortas="b-rdx">rdx</primary>
|
---|
217 | </indexterm>
|
---|
218 | </listitem>
|
---|
219 | </varlistentry>
|
---|
220 |
|
---|
221 | </variablelist>
|
---|
222 |
|
---|
223 | </sect2>
|
---|
224 |
|
---|
225 | </sect1>
|
---|