Rename ret_near to ret and temporarily allow dead relocations

This commit is contained in:
Brendan Hansknecht 2020-11-23 22:09:44 -08:00
parent 6caef6b86f
commit 09410d7a02
3 changed files with 6 additions and 5 deletions

View file

@ -37,6 +37,7 @@ const INLINED_SYMBOLS: [Symbol; 2] = [Symbol::NUM_ABS, Symbol::NUM_ADD];
// These relocations likely will need a length.
// They may even need more definition, but this should be at least good enough for how we will use elf.
#[allow(dead_code)]
enum Relocation<'a> {
LocalData { offset: u64, data: &'a [u8] },
LinkedFunction { offset: u64, name: &'a str },