Short: Relocates an exe-binary for ROMs V1.4 Author: jgeiss@muc.de (Johannes Geiss) Uploader: jffabre@club-internet.fr (Jean-François Fabre) Type: dev/misc Version: 1.4 This simple command (Reloc) relocates an executable binary file to binary image file usable for ROMs. It loads an executable file in to memory, resolves all adresses and creates a simple binary image which is only executable at the given relocation address. --- JOTD: The program did not work properly with BSS hunks, so I fixed it. I also created GnuMake makefiles, using phxass, because SAS-C smake is buggy as hell, and the sc assembler caused problems. The program has still got some problems with some executables, but I'm investigating... Contact me by e-mail: jffabre@club-internet.fr --- Usage: Reloc SFile DFile Loc SFile: source filename, DFile: destination fileanme, Loc: location address (hex). Relocates an object file SFile to DFile at address Loc (Order: CODE, DATA, BSS) Example: If you created an executable file named "scsi-boot" and you want to create an EPROM which is located at address $00f00000 just type Reloc scsi-boot scsi-boot_f0 f00000 After this you have got a binary image file named "scsi-boot_f0". This file contains your CODE, DATA and BSS specified in "scsi-boot". The code is fixed to the starting location $00f00000. Now you can burn an EPROM using "scsi-boot_f0". If your EPROM appears at the specified address the code is executable. Note: This is a very old program and I cannot guaranty for the functionnality. You must not use any special HUNKs like HUNK_OVERLAY etc. Have fun Johannes Geiss ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 1192 553 53.6% 23-Jan-00 15:24:20 +AmigavisionsLib.info 3391 484 85.7% 23-Jan-00 15:24:20 +amigavisions.lib.info 1673 1212 27.5% 23-Jan-00 15:24:20 +Build.info 1071 202 81.1% 23-Jan-00 15:24:20 +call.i 4232 889 78.9% 23-Jan-00 15:24:20 +call.i.info 2632 1711 34.9% 23-Jan-00 15:24:20 +Debug 1663 896 46.1% 23-Jan-00 15:24:20 +Debug.info 3000 1221 59.3% 23-Jan-00 15:24:20 +DOSError.a 1672 1123 32.8% 23-Jan-00 15:24:20 +DOSError.a.info 1672 883 47.1% 23-Jan-00 15:24:20 +Edit.info 1674 939 43.9% 23-Jan-00 15:24:20 +Find.info 225 163 27.5% 23-Jan-00 15:24:20 +Makefile 1640 890 45.7% 23-Jan-00 15:24:20 +Makefile.info 2957 1200 59.4% 23-Jan-00 15:24:20 +OpenData.a 1672 1122 32.8% 23-Jan-00 15:24:20 +OpenData.a.info 1106 500 54.7% 23-Jan-00 15:24:20 +Print.a 1672 1121 32.9% 23-Jan-00 15:24:20 +Print.a.info 26 26 0.0% 23-Jan-00 15:24:20 +SCOPTIONS 1674 1125 32.7% 23-Jan-00 15:24:20 +SCoptions.info 174 139 20.1% 23-Jan-00 15:24:20 +smakefile 1432 848 40.7% 23-Jan-00 15:24:20 +smakefile.info 64 63 1.5% 23-Jan-00 15:24:20 +xref.i 4232 891 78.9% 23-Jan-00 15:24:20 +xref.i.info 1192 551 53.7% 23-Jan-00 15:24:20 +AsmStartup.info 757 301 60.2% 23-Jan-00 15:24:20 +Astartup.a 1672 1124 32.7% 23-Jan-00 15:24:20 +Astartup.a.info 1171 610 47.9% 23-Jan-00 15:24:20 +Astartup.o.info 1673 1211 27.6% 23-Jan-00 15:24:20 +Build.info 2632 1711 34.9% 23-Jan-00 15:24:20 +Debug 1663 895 46.1% 23-Jan-00 15:24:20 +Debug.info 1672 886 47.0% 23-Jan-00 15:24:20 +Edit.info 1674 939 43.9% 23-Jan-00 15:24:20 +Find.info 101 82 18.8% 23-Jan-00 15:24:20 +Makefile 1646 895 45.6% 23-Jan-00 15:24:20 +Makefile.info 26 26 0.0% 23-Jan-00 15:24:20 +SCOPTIONS 1674 1123 32.9% 23-Jan-00 15:24:20 +SCoptions.info 66 56 15.1% 23-Jan-00 15:24:20 +smakefile 1432 848 40.7% 23-Jan-00 15:24:20 +smakefile.info 20629 6327 69.3% 23-Jan-00 15:24:20 +startup.i 4232 890 78.9% 23-Jan-00 15:24:20 +startup.i.info 16 16 0.0% 23-Jan-00 15:24:20 +Build 1719 1253 27.1% 23-Jan-00 15:24:20 +Build.info 1071 202 81.1% 23-Jan-00 15:24:20 +call.i 4232 891 78.9% 23-Jan-00 15:24:20 +call.i.info 2632 1711 34.9% 23-Jan-00 15:24:20 +Debug 1663 893 46.3% 23-Jan-00 15:24:20 +Debug.info 1672 888 46.8% 23-Jan-00 15:24:20 +Edit.info 1674 939 43.9% 23-Jan-00 15:24:20 +Find.info 3072 1682 45.2% 23-Jan-00 15:24:20 +Load_SFile 1256 472 62.4% 23-Jan-00 15:24:20 +Load_SFile.a 1672 1121 32.9% 23-Jan-00 15:24:20 +Load_SFile.a.info 835 394 52.8% 23-Jan-00 15:24:20 +Load_SFile.info 2976 1639 44.9% 23-Jan-00 15:24:20 +Main 2533 805 68.2% 23-Jan-00 15:24:20 +Main.a 1672 1123 32.8% 23-Jan-00 15:24:20 +Main.a.info 835 391 53.1% 23-Jan-00 15:24:20 +Main.info 684 332 51.4% 23-Jan-00 15:24:20 +Makefile 1640 886 45.9% 23-Jan-00 15:24:20 +Makefile.info 4880 2610 46.5% 23-Jan-00 15:24:20 +Reloc 1667 886 46.8% 23-Jan-00 15:24:20 +Reloc.info 1703 850 50.0% 23-Jan-00 15:24:20 +Reloc.readme 2072 1389 32.9% 23-Jan-00 15:24:20 +Reloc.readme.info 8398 2146 74.4% 23-Jan-00 15:24:20 +Reloc_SFile.a 1890 1177 37.7% 23-Jan-00 15:24:20 +Reloc_SFile.a.info 8298 2093 74.7% 23-Jan-00 15:24:20 +Reloc_SFile.a.org 1674 1123 32.9% 23-Jan-00 15:24:20 +SCoptions.info 698 327 53.1% 23-Jan-00 15:24:20 +smakefile 1426 841 41.0% 23-Jan-00 15:24:20 +smakefile.info 3608 2015 44.1% 23-Jan-00 15:24:20 +TestPar 3016 1030 65.8% 23-Jan-00 15:24:20 +TestPar.a 1888 1176 37.7% 23-Jan-00 15:24:20 +TestPar.a.info 835 391 53.1% 23-Jan-00 15:24:20 +TestPar.info 64 63 1.5% 23-Jan-00 15:24:20 +xref.i 4232 893 78.8% 23-Jan-00 15:24:20 +xref.i.info -------- ------- ----- --------- -------- 162861 71324 56.2% 24-Jan-100 00:25:22 74 files