Quellcode durchsuchen

fix: remove usage section from README & a couple of printlns

Sonic vor 1 Monat
Ursprung
Commit
1c4468bf43
2 geänderte Dateien mit 0 neuen und 24 gelöschten Zeilen
  1. 0 22
      Readme.md
  2. 0 2
      src/byteparser.rs

+ 0 - 22
Readme.md

@@ -11,28 +11,6 @@
 cargo install sbpf-linker
 ```
 
-### Usage
-
-```
-Usage: sbpf-linker [OPTIONS] --output <OUTPUT> <INPUTS>...
-
-Arguments:
-  <INPUTS>...  Input files. Can be object files or static libraries
-
-Options:
-      --cpu <CPU>              Target BPF processor. Can be one of `generic`, `probe`, `v1`, `v2`, `v3` [default: generic]
-  -o, --output <OUTPUT>        Write output to <output>
-      --btf                    Emit BTF information
-  -L <LIBS>                    Add a directory to the library search path
-  -O <OPTIMIZE>                Optimization level. 0-3, s, or z [default: 2]
-      --export-symbols <path>  Export the symbols specified in the file `path`. The symbols must be separated by new lines
-      --dump-module <path>     Dump the final IR module to the given `path` before generating the code
-      --export <symbols>       Comma separated list of symbols to export. See also `--export-symbols`
-  -h, --help                   Print help
-  -V, --version                Print version
-```
-
-
 ### Generate a Program
 
 ```sh

+ 0 - 2
src/byteparser.rs

@@ -79,12 +79,10 @@ pub fn parse_bytecode(bytes: &[u8]) -> Result<ParseResult, SbpfLinkerError> {
                         Symbol(sym) => Some(obj.symbol_by_index(sym).unwrap()),
                         _ => None,
                     };
-                    println!("Symbol: {symbol:?}");
 
                     if symbol.unwrap().section_index()
                         == Some(ro_section.index())
                     {
-                        println!("Relocation found");
                         // addend is not explicit in the relocation entry, but implicitly encoded
                         // as the immediate value of the instruction
                         let addend = match ast