rename parts to common

master
Ales Katona 4 years ago
parent 8f0fadf570
commit 8d7f01c86e
Signed by: almindor
GPG Key ID: 2F773149BF38B48F

@ -3,9 +3,9 @@ use std::{
path::{Path, PathBuf},
};
use crate::common::{Lazy, Relocatable, Storage, Symbol};
use crate::linker::LinkState;
use crate::parts::{Lazy, Relocatable, Storage, Symbol};
use crate::{error::Error, parts::BSI};
use crate::{common::BSI, error::Error};
use xmas_elf::header::Type as ElfType;
use xmas_elf::ElfFile;

@ -1,8 +1,8 @@
use std::iter::Cloned;
use crate::{
common::{Section, SectionInfo, SectionIterResult},
error::Error,
parts::{Section, SectionInfo, SectionIterResult},
};
use xmas_elf::{
sections::{SectionData, SectionHeader, SectionIter as ElfIter, ShType},

@ -1,6 +1,6 @@
use crate::{
common::{Section, SectionIterResult},
error::Error,
parts::{Section, SectionIterResult},
};
use xmas_elf::sections::SectionIter as ElfIter;
use xmas_elf::ElfFile;

@ -1,6 +1,6 @@
use std::fmt::Display;
use crate::{error::Error, parts::Relocatable};
use crate::{common::Relocatable, error::Error};
pub struct LinkState<'data> {
pub relocatables: Vec<Box<dyn Relocatable + 'data>>,

@ -1,11 +1,11 @@
mod common;
mod error;
mod formats;
mod linker;
mod parts;
use common::Storage;
use formats::ElfObject;
use linker::LinkState;
use parts::Storage;
fn main() {
let mut args = std::env::args().peekable();

Loading…
Cancel
Save