This commit is contained in:
nora 2023-05-07 10:59:19 +02:00
parent ca89c63adc
commit 4ae7bf8ad5
20 changed files with 387 additions and 19 deletions

View file

@ -26,10 +26,10 @@ pub struct Opts {
#[derive(Debug)]
struct SymDef<'a> {
name: &'a BStr,
_name: &'a BStr,
defined_in: u32,
/// `shndx` from ELF
refers_to_section: SectionIdx,
_refers_to_section: SectionIdx,
}
struct LinkCtxt<'a> {
@ -112,9 +112,9 @@ impl<'a> LinkCtxt<'a> {
}
Entry::Vacant(entry) => {
entry.insert(SymDef {
name,
_name: name,
defined_in: elf_idx as u32,
refers_to_section: e_sym.shndx,
_refers_to_section: e_sym.shndx,
});
}
}