forked from M-Labs/nac3
Compare commits
1 Commits
master
...
none-reloc
Author | SHA1 | Date | |
---|---|---|---|
23a37fdfda |
@ -228,6 +228,11 @@ impl<'a> Linker<'a> {
|
||||
}
|
||||
|
||||
for reloc in relocs {
|
||||
// Skip NONE type relocations. It is 0 across all targets.
|
||||
if reloc.type_info() == 0 {
|
||||
continue;
|
||||
}
|
||||
|
||||
let sym = match reloc.sym_info() as usize {
|
||||
STN_UNDEF => None,
|
||||
sym_index => {
|
||||
@ -670,6 +675,9 @@ impl<'a> Linker<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
// Discard NONE relocations
|
||||
(Isa::CortexA9, R_ARM_NONE) | (Isa::RiscV32, R_RISCV_NONE) => (),
|
||||
|
||||
_ => {
|
||||
println!("Relocation type 0x{:X?} is not supported", reloc.type_info());
|
||||
unimplemented!()
|
||||
|
Loading…
x
Reference in New Issue
Block a user