Giter VIP home page Giter VIP logo

hld's Introduction

๐Ÿš€ hld - hdu Link eDitor

hld is a small but powerful linker written in Rust. It can help you link multiple object files together to produce an executable or shared library.

Installation

You can install hld using the cargo package manager:

cargo install hld

Usage

Command-line Options

hld supports the following command-line options:

USAGE:
    hld [OPTIONS] <OUTPUT> --entry <SYMBOL>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -e, --entry <SYMBOL>      Specify the entry symbol
    -L, --library-path <DIR>  Add a directory to the library search path
    -l, --library <LIB>       Link with a library
    -o, --output <OUTPUT>     Set the output file name
    -T, --script <FILE>       Use a linker script

ARGS:
    <OUTPUT>    Set the output file name

Examples

Link multiple object files:

hld -o my_program a.o b.o c.o

Link a shared library:

hld -o my_shared_library.so a.o b.o c.o -shared

Use a custom linker script:

hld -o my_program a.o b.o c.o -T custom.ld

Add library search paths and link libraries:

hld -o my_program a.o b.o c.o -L /usr/local/lib -l my_lib

Specify the entry symbol:

hld -o my_program a.o b.o c.o -e main

Contributing

Contributions are welcome! Please submit bug reports and pull requests. Before submitting a pull request, please read our contribution guidelines.

License

hld is licensed under the MIT license. Please see the LICENSE file for more information.

hld's People

Contributors

clo91eaf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.