Skip to content
Snippets Groups Projects
Commit 4888bfd8 authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Fix section list in PIP elf extraction

parent ce8c221f
No related branches found
No related tags found
1 merge request!1Add a new `link` subcommand
...@@ -766,7 +766,7 @@ name = "pip-mpu-relocate" ...@@ -766,7 +766,7 @@ name = "pip-mpu-relocate"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"elf", "elf",
"thiserror", "thiserror-core",
] ]
[[package]] [[package]]
...@@ -1068,6 +1068,26 @@ dependencies = [ ...@@ -1068,6 +1068,26 @@ dependencies = [
"thiserror-impl", "thiserror-impl",
] ]
[[package]]
name = "thiserror-core"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c001ee18b7e5e3f62cbf58c7fe220119e68d902bb7443179c0c8aef30090e999"
dependencies = [
"thiserror-core-impl",
]
[[package]]
name = "thiserror-core-impl"
version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "thiserror-impl" name = "thiserror-impl"
version = "1.0.58" version = "1.0.58"
......
...@@ -24,7 +24,7 @@ use std::io::Write; ...@@ -24,7 +24,7 @@ use std::io::Write;
const PADDING_SIZE: usize = 32; const PADDING_SIZE: usize = 32;
const PADDING_BUFFER: [u8; PADDING_SIZE] = [0xff; PADDING_SIZE]; const PADDING_BUFFER: [u8; PADDING_SIZE] = [0xff; PADDING_SIZE];
const PIP_EXPORT_SECTIONS: &'static [&str] = &[".vector_table", ".text", ".data"]; const PIP_EXPORT_SECTIONS: &'static [&str] = &[".vector_table", ".text", ".ARM.exidx", ".data"];
const CRT0_EXPORT_SECTIONS: &'static [&str] = &[".text", ".rodata", ".ARM.exidx"]; const CRT0_EXPORT_SECTIONS: &'static [&str] = &[".text", ".rodata", ".ARM.exidx"];
/// Options for the link subcommand /// Options for the link subcommand
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment