mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-29 18:01:19 +00:00
34 lines
13 KiB
HTML
34 lines
13 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `relocation` mod in crate `goblin`."><meta name="keywords" content="rust, rustlang, rust-lang, relocation"><title>goblin::pe::relocation - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="shortcut icon" href="../../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../../goblin/index.html'><div class='logo-container'><img src='../../../rust-logo.png' alt='logo'></div></a><p class='location'>Module relocation</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li></ul></div><p class='location'><a href='../../index.html'>goblin</a>::<wbr><a href='../index.html'>pe</a></p><script>window.sidebarCurrent = {name: 'relocation', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../../../src/goblin/pe/relocation.rs.html#1-133' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>goblin</a>::<wbr><a href='../index.html'>pe</a>::<wbr><a class="mod" href=''>relocation</a></span></h1><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||
<table><tr class='module-item'><td><a class="struct" href="struct.Relocation.html" title='goblin::pe::relocation::Relocation struct'>Relocation</a></td><td class='docblock-short'><p>A COFF relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="struct" href="struct.Relocations.html" title='goblin::pe::relocation::Relocations struct'>Relocations</a></td><td class='docblock-short'><p>An iterator for COFF relocations.</p>
|
||
</td></tr></table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
|
||
<table><tr class='module-item'><td><a class="constant" href="constant.COFF_RELOCATION_SIZE.html" title='goblin::pe::relocation::COFF_RELOCATION_SIZE constant'>COFF_RELOCATION_SIZE</a></td><td class='docblock-short'><p>Size of a single COFF relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_ABSOLUTE.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_ABSOLUTE constant'>IMAGE_REL_AMD64_ABSOLUTE</a></td><td class='docblock-short'><p>The relocation is ignored.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_SECTION.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_SECTION constant'>IMAGE_REL_AMD64_SECTION</a></td><td class='docblock-short'><p>The 16-bit section index of the section that contains the target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_SECREL.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_SECREL constant'>IMAGE_REL_AMD64_SECREL</a></td><td class='docblock-short'><p>The 32-bit offset of the target from the beginning of its section.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_TOKEN.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_TOKEN constant'>IMAGE_REL_AMD64_TOKEN</a></td><td class='docblock-short'><p>CLR tokens.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_PAIR.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_PAIR constant'>IMAGE_REL_AMD64_PAIR</a></td><td class='docblock-short'><p>A pair that must immediately follow every span-dependent value.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_ADDR32.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_ADDR32 constant'>IMAGE_REL_AMD64_ADDR32</a></td><td class='docblock-short'><p>The 32-bit VA of the relocation target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_ADDR32NB.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_ADDR32NB constant'>IMAGE_REL_AMD64_ADDR32NB</a></td><td class='docblock-short'><p>The 32-bit address without an image base (RVA).</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_ADDR64.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_ADDR64 constant'>IMAGE_REL_AMD64_ADDR64</a></td><td class='docblock-short'><p>The 64-bit VA of the relocation target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32 constant'>IMAGE_REL_AMD64_REL32</a></td><td class='docblock-short'><p>The 32-bit relative address from the byte following the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32_1.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32_1 constant'>IMAGE_REL_AMD64_REL32_1</a></td><td class='docblock-short'><p>The 32-bit address relative to byte distance 1 from the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32_2.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32_2 constant'>IMAGE_REL_AMD64_REL32_2</a></td><td class='docblock-short'><p>The 32-bit address relative to byte distance 2 from the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32_3.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32_3 constant'>IMAGE_REL_AMD64_REL32_3</a></td><td class='docblock-short'><p>The 32-bit address relative to byte distance 3 from the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32_4.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32_4 constant'>IMAGE_REL_AMD64_REL32_4</a></td><td class='docblock-short'><p>The 32-bit address relative to byte distance 4 from the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_REL32_5.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_REL32_5 constant'>IMAGE_REL_AMD64_REL32_5</a></td><td class='docblock-short'><p>The 32-bit address relative to byte distance 5 from the relocation.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_SECREL7.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_SECREL7 constant'>IMAGE_REL_AMD64_SECREL7</a></td><td class='docblock-short'><p>A 7-bit unsigned offset from the base of the section that contains the target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_SREL32.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_SREL32 constant'>IMAGE_REL_AMD64_SREL32</a></td><td class='docblock-short'><p>A 32-bit signed span-dependent value emitted into the object.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_AMD64_SSPAN32.html" title='goblin::pe::relocation::IMAGE_REL_AMD64_SSPAN32 constant'>IMAGE_REL_AMD64_SSPAN32</a></td><td class='docblock-short'><p>A 32-bit signed span-dependent value that is applied at link time.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_ABSOLUTE.html" title='goblin::pe::relocation::IMAGE_REL_I386_ABSOLUTE constant'>IMAGE_REL_I386_ABSOLUTE</a></td><td class='docblock-short'><p>The relocation is ignored.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_SECTION.html" title='goblin::pe::relocation::IMAGE_REL_I386_SECTION constant'>IMAGE_REL_I386_SECTION</a></td><td class='docblock-short'><p>The 16-bit section index of the section that contains the target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_SECREL.html" title='goblin::pe::relocation::IMAGE_REL_I386_SECREL constant'>IMAGE_REL_I386_SECREL</a></td><td class='docblock-short'><p>The 32-bit offset of the target from the beginning of its section.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_TOKEN.html" title='goblin::pe::relocation::IMAGE_REL_I386_TOKEN constant'>IMAGE_REL_I386_TOKEN</a></td><td class='docblock-short'><p>The CLR token.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_DIR16.html" title='goblin::pe::relocation::IMAGE_REL_I386_DIR16 constant'>IMAGE_REL_I386_DIR16</a></td><td class='docblock-short'><p>Not supported.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_DIR32.html" title='goblin::pe::relocation::IMAGE_REL_I386_DIR32 constant'>IMAGE_REL_I386_DIR32</a></td><td class='docblock-short'><p>The target's 32-bit VA.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_DIR32NB.html" title='goblin::pe::relocation::IMAGE_REL_I386_DIR32NB constant'>IMAGE_REL_I386_DIR32NB</a></td><td class='docblock-short'><p>The target's 32-bit RVA.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_REL16.html" title='goblin::pe::relocation::IMAGE_REL_I386_REL16 constant'>IMAGE_REL_I386_REL16</a></td><td class='docblock-short'><p>Not supported.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_REL32.html" title='goblin::pe::relocation::IMAGE_REL_I386_REL32 constant'>IMAGE_REL_I386_REL32</a></td><td class='docblock-short'><p>The 32-bit relative displacement to the target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_SECREL7.html" title='goblin::pe::relocation::IMAGE_REL_I386_SECREL7 constant'>IMAGE_REL_I386_SECREL7</a></td><td class='docblock-short'><p>A 7-bit offset from the base of the section that contains the target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.IMAGE_REL_I386_SEG12.html" title='goblin::pe::relocation::IMAGE_REL_I386_SEG12 constant'>IMAGE_REL_I386_SEG12</a></td><td class='docblock-short'><p>Not supported.</p>
|
||
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../";window.currentCrate = "goblin";</script><script src="../../../aliases.js"></script><script src="../../../main.js"></script><script defer src="../../../search-index.js"></script></body></html> |