Catalog · How the catalog works
unild
Universial Linker Editor
- ★ 1 on Codeberg
Anyone may press Interesting, signed in or not. It helps others find this project.
README
unild
Universal Linker Editor(Universal Linker eDitor)
Requirements of the unild to execute
Any Operating System the FPC(Free Pascal Compiler) Supports
Requirements of compling unild
FPC(Free Pascal Compiler) Trunk Version needed for compiling the software unild,whether you use fpcupdeluxe or not,you ought to build fpc trunk version as demanded tool for this.
Steps to complie unild for using the linker unild in Linux
Install the fpc old version using Package Manager in the Linux,and git clone the fpc source code in gitlab(Search gitlab fpc).
After you obtain the source code of the fpc,you ought to type these commands and execute below:
sudo make all
cd compiler
sudo make alltargets
cd ..
#The Command below is For Cross Compiling,if you not want to cross compile,You ought to ignore this command in Linux,if you needn't cross-compile,you should ignore the command below.
sudo make all CPU_TARGET=(The Architecture you needed) OS_TARGET=linux BINUTILSPREFIX=(Architecture of you needed)-linux-gnu- ``<br>``After you compile the unild,run build.sh in the source code to quickly compile the source code to executable file.
Default Compiler Path is in Linux(/home/(your user name)/source/compiler),you can edit the build.sh to change the default compiler path.
If you want to cross compile the unild software,you should bash build.sh (Architecture) to cross compile the linker.
(Changing the optimization shell command will cause errors,if you ought to alter optimization,you should to take a test).
Steps to compile unild for using the linker unild in Windows
Get the fpcupdeluxe for compile the FPC(Free Pascal Compiler) and Lazarus,fpcupdeluxe can auto-configure the build enviornment for compile the unild.
If you want to compile the unild,you ought to copy the unild.pas to unild.lpr for using Lazarus to compile the binary.
Details about using unild
All input object file must be ELF-Format Files.
Example Linker Script is linkerscript.txt(Not a entire one,please look up unildscript.pas for more details).
Execute command ./unild after you compile the unild source code or directly input ./unild in the binary.

