http://fpcamigawiki.alb42.de/index.php?title=Cross_MorphOS_binutils&feed=atom&action=history
Cross MorphOS binutils - Revision history
2024-03-28T11:34:14Z
Revision history for this page on the wiki
MediaWiki 1.35.1
http://fpcamigawiki.alb42.de/index.php?title=Cross_MorphOS_binutils&diff=921&oldid=prev
Alb42: vlink/vasm link
2020-05-16T21:02:44Z
<p>vlink/vasm link</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:02, 16 May 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>How to create binutils (as, ld) needed for FreePascal crosscompiling to MorphOS on a linux system.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>How to create <ins class="diffchange diffchange-inline">gnu </ins>binutils (as, ld) needed for FreePascal crosscompiling to MorphOS on a linux system.<ins class="diffchange diffchange-inline"><br /></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">(for vasm/vlink check [[Cross binutils vasm/vlink]])</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>One needs:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>One needs:</div></td></tr>
<!-- diff cache key db624220369-ntdbjym2gu:diff::1.12:old-913:rev-921 -->
</table>
Alb42
http://fpcamigawiki.alb42.de/index.php?title=Cross_MorphOS_binutils&diff=913&oldid=prev
Alb42: short manual how to create cross binutils for morphos on linux
2020-05-16T14:53:57Z
<p>short manual how to create cross binutils for morphos on linux</p>
<p><b>New page</b></p><div>How to create binutils (as, ld) needed for FreePascal crosscompiling to MorphOS on a linux system.<br />
<br />
One needs:<br />
* working linux with gcc (e.g. ubuntu: <code>sudo apt install build-essentials</code>)<br />
* flex, bison (e.g. ubuntu: <code>sudo apt install flex bison</code>)<br />
* xz-utils (e.g. ubuntu: <code>sudo apt install xz-utils</code>) <br />
* latest sdk source from [https://www.morphos-team.net/sources MorphOS source page] (e.g. [https://www.morphos-team.net/files/src/sdk//sdk-source-20200422.tar.xz sdk-source-20200422])<br />
<br />
<br />
# unpack the source (e.g. <code>tar -xJf sdk-source-20200422.tar.xz</code>) <br /><br />
#* we only need the <code>sdk-source/binutils</code> folder, therefore its possible to only unpack that directory (e.g. when using GUI tools to unpack)<br />
# enter the <code>sdk-source/binutils</code> folder (e.g. <code>cd sdk-source/binutils</code>)<br />
# unpack the <code>binutils-x.xx.tar.xz</code> inside (e.g. <code>tar -xJf binutils-2.34.tar.xz</code>)<br />
# apply the patch for the same version number with <code>patch -p0 <./binutils-x.xx-morphos.diff</code> (e.g. <code>patch -p0 <./binutils-2.34-morphos.diff</code>)<br />
#* make sure you have the same version number of diff file as the directory<br />
# create a new directory build (e.g. <code>mkdir build</code>)<br />
# enter that directory (e.g. <code>cd build</code>)<br />
# configure the morphos binutils (e.g. <code>../binutils-2.34/configure CFLAGS="-DMORPHOS_TARGET" --target=ppc-morphos --enable-plugins=no --disable-initfini-array</code>)<br />
# compile the cross binutils for morphos (e.g. <code>make</code>)<br />
# you will find the compiled tools in the build directory, we are most interested in directories "gas" the assembler and "ld" the linker<br />
# copy and rename the assembler to <code>/usr/bin</code> with prefix powerpc-morphos (e.g. <code>cp gas/as-new /usr/bin/powerpc-morphos-as</code>)<br />
# copy and rename the linker to <code>/usr/bin</code> with prefix powerpc-morphos (e.g. <code>cp ld/ld-new /usr/bin/powerpc-morphos-ld</code>)<br />
<br />
Finished!</div>
Alb42