3 releases (breaking)

Uses old Rust 2015

0.3.0 Feb 1, 2024
0.2.0 Mar 27, 2023
0.1.0 Apr 26, 2017

#7 in #script-file

Download history 6/week @ 2024-01-29 10/week @ 2024-02-19 31/week @ 2024-02-26 52/week @ 2024-04-01

52 downloads per month

MIT license

46KB
1.5K SLoC

ldscript-parser

A Linker Script parser

"Documentation"

License

MIT license LICENSE-MIT


lib.rs:

Linker Script parser

Usage

extern crate ldscript_parser as lds;

use std::fs::File;
use std::io::Read;

fn main() {
    let script = &mut String::new();
    File::open("tests/msp430bt5190.ld").unwrap()
                .read_to_string(script).unwrap();

    println!("{:#?}", lds::parse(script).unwrap());
}

References

Dependencies

~1MB
~17K SLoC