From 6bf5f102738c434fc13c8d37a0028fb0cd49dee2 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Thu, 8 Mar 2018 12:47:43 -0800 Subject: [PATCH] Added more missing doc comments. --- src/elements/reloc_section.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/elements/reloc_section.rs b/src/elements/reloc_section.rs index f791d72..7271ca1 100644 --- a/src/elements/reloc_section.rs +++ b/src/elements/reloc_section.rs @@ -132,46 +132,73 @@ pub enum RelocationEntry { /// Function table index. TableIndexSleb { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the function symbol in the symbol table. index: u32, }, /// Function table index. TableIndexI32 { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the function symbol in the symbol table. index: u32, }, /// Linear memory index. MemoryAddressLeb { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the data symbol in the symbol table. index: u32, + + /// Addend to add to the address. addend: i32, }, /// Linear memory index. MemoryAddressSleb { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the data symbol in the symbol table. index: u32, + + /// Addend to add to the address. addend: i32, }, /// Linear memory index. MemoryAddressI32 { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the data symbol in the symbol table. index: u32, + + /// Addend to add to the address. addend: i32, }, /// Type table index. TypeIndexLeb { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the type used. index: u32, }, /// Global index. GlobalIndexLeb { + /// Offset of the value to rewrite. offset: u32, + + /// Index of the global symbol in the symbol table. index: u32, }, }