Universal Linker Editor(Universal Linker eDitor)
Windows or Linux Operating System
FPC(Free Pascal Compiler) Trunk Version
You ought to 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 ..
sudo make all CPU_TARGET=(The Architecture you needed) OS_TARGET=linux BINUTILSPREFIX=(Architecture of you needed)-linux-gnu- (For Cross Compiling,if you not want to cross compile,You ought to ignore this command in Linux)
Please 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).
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.