Docs.rs
  • ldscript-parser-0.3.0
    • ldscript-parser 0.3.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • pftbest
    • Dependencies
      • nom ^7.1.3 normal
    • Versions
    • 1.43% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate ldscript_parser

ldscript_parser0.3.0

  • All Items

Sections

  • Usage
  • References

Crate Items

  • Structs
  • Enums
  • Functions

Crates

  • ldscript_parser

Crate ldscript_parser

Source
Expand description

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

  • GNU binutils documentation

Structs§

Region

Enums§

AssignOperator
BinaryOperator
Command
DataType
Expression
OutputSectionCommand
OutputSectionConstraint
OutputSectionType
RootItem
SectionCommand
SectionPattern
Statement
UnaryOperator

Functions§

parse
Parses the string that contains a linker script

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".