Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

unild

Universal Linker Editor

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

unild

Universal Linker Editor(Universal Linker eDitor)

Requirements of the unild to execute

Windows or Linux Operating System

Requirements of compling unild

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:

bash
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).

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.