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}, path::{Path, PathBuf},
}; };
use crate::common::{Lazy, Relocatable, Storage, Symbol};
use crate::linker::LinkState; use crate::linker::LinkState;
use crate::parts::{Lazy, Relocatable, Storage, Symbol}; use crate::{common::BSI, error::Error};
use crate::{error::Error, parts::BSI};
use xmas_elf::header::Type as ElfType; use xmas_elf::header::Type as ElfType;
use xmas_elf::ElfFile; use xmas_elf::ElfFile;

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

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

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

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

Loading…
Cancel
Save