mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-05 15:22:13 +00:00
28 lines
15 KiB
HTML
28 lines
15 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::mach::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><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../../index.html'>goblin</a>::<wbr><a href='../index.html'>mach</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/mach/relocation.rs.html#25-228' title='goto source code'>[src]</a></span><span class='in-band'>Module <a href='../../index.html'>goblin</a>::<wbr><a href='../index.html'>mach</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.RelocationInfo.html" title='goblin::mach::relocation::RelocationInfo struct'>RelocationInfo</a></td><td class='docblock-short'></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.ARM64_RELOC_UNSIGNED.html" title='goblin::mach::relocation::ARM64_RELOC_UNSIGNED constant'>ARM64_RELOC_UNSIGNED</a></td><td class='docblock-short'><p>For pointers.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_SUBTRACTOR.html" title='goblin::mach::relocation::ARM64_RELOC_SUBTRACTOR constant'>ARM64_RELOC_SUBTRACTOR</a></td><td class='docblock-short'><p>Must be followed by an ARM64_RELOC_UNSIGNED</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_POINTER_TO_GOT.html" title='goblin::mach::relocation::ARM64_RELOC_POINTER_TO_GOT constant'>ARM64_RELOC_POINTER_TO_GOT</a></td><td class='docblock-short'><p>For pointers to GOT slots.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_ADDEND.html" title='goblin::mach::relocation::ARM64_RELOC_ADDEND constant'>ARM64_RELOC_ADDEND</a></td><td class='docblock-short'><p>Must be followed by ARM64_RELOC_PAGE21 or ARM64_RELOC_PAGEOFF12.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_BRANCH26.html" title='goblin::mach::relocation::ARM64_RELOC_BRANCH26 constant'>ARM64_RELOC_BRANCH26</a></td><td class='docblock-short'><p>A B/BL instruction with 26-bit displacement.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_GOT_LOAD_PAGE21.html" title='goblin::mach::relocation::ARM64_RELOC_GOT_LOAD_PAGE21 constant'>ARM64_RELOC_GOT_LOAD_PAGE21</a></td><td class='docblock-short'><p>PC-rel distance to page of GOT slot.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_GOT_LOAD_PAGEOFF12.html" title='goblin::mach::relocation::ARM64_RELOC_GOT_LOAD_PAGEOFF12 constant'>ARM64_RELOC_GOT_LOAD_PAGEOFF12</a></td><td class='docblock-short'><p>Offset within page of GOT slot, scaled by r_length.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_PAGE21.html" title='goblin::mach::relocation::ARM64_RELOC_PAGE21 constant'>ARM64_RELOC_PAGE21</a></td><td class='docblock-short'><p>PC-rel distance to page of target.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_PAGEOFF12.html" title='goblin::mach::relocation::ARM64_RELOC_PAGEOFF12 constant'>ARM64_RELOC_PAGEOFF12</a></td><td class='docblock-short'><p>Offset within page, scaled by r_length.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_TLVP_LOAD_PAGE21.html" title='goblin::mach::relocation::ARM64_RELOC_TLVP_LOAD_PAGE21 constant'>ARM64_RELOC_TLVP_LOAD_PAGE21</a></td><td class='docblock-short'><p>PC-rel distance to page of TLVP slot.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM64_RELOC_TLVP_LOAD_PAGEOFF12.html" title='goblin::mach::relocation::ARM64_RELOC_TLVP_LOAD_PAGEOFF12 constant'>ARM64_RELOC_TLVP_LOAD_PAGEOFF12</a></td><td class='docblock-short'><p>Offset within page of TLVP slot, scaled by r_length.</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_BR24.html" title='goblin::mach::relocation::ARM_RELOC_BR24 constant'>ARM_RELOC_BR24</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_HALF.html" title='goblin::mach::relocation::ARM_RELOC_HALF constant'>ARM_RELOC_HALF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_HALF_SECTDIFF.html" title='goblin::mach::relocation::ARM_RELOC_HALF_SECTDIFF constant'>ARM_RELOC_HALF_SECTDIFF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_LOCAL_SECTDIFF.html" title='goblin::mach::relocation::ARM_RELOC_LOCAL_SECTDIFF constant'>ARM_RELOC_LOCAL_SECTDIFF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_PAIR.html" title='goblin::mach::relocation::ARM_RELOC_PAIR constant'>ARM_RELOC_PAIR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_PB_LA_PTR.html" title='goblin::mach::relocation::ARM_RELOC_PB_LA_PTR constant'>ARM_RELOC_PB_LA_PTR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_SECTDIFF.html" title='goblin::mach::relocation::ARM_RELOC_SECTDIFF constant'>ARM_RELOC_SECTDIFF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_RELOC_VANILLA.html" title='goblin::mach::relocation::ARM_RELOC_VANILLA constant'>ARM_RELOC_VANILLA</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_THUMB_32BIT_BRANCH.html" title='goblin::mach::relocation::ARM_THUMB_32BIT_BRANCH constant'>ARM_THUMB_32BIT_BRANCH</a></td><td class='docblock-short'><p>Obsolete</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.ARM_THUMB_RELOC_BR22.html" title='goblin::mach::relocation::ARM_THUMB_RELOC_BR22 constant'>ARM_THUMB_RELOC_BR22</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.GENERIC_RELOC_LOCAL_SECTDIFF.html" title='goblin::mach::relocation::GENERIC_RELOC_LOCAL_SECTDIFF constant'>GENERIC_RELOC_LOCAL_SECTDIFF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.GENERIC_RELOC_PAIR.html" title='goblin::mach::relocation::GENERIC_RELOC_PAIR constant'>GENERIC_RELOC_PAIR</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.GENERIC_RELOC_PB_LA_P.html" title='goblin::mach::relocation::GENERIC_RELOC_PB_LA_P constant'>GENERIC_RELOC_PB_LA_P</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.GENERIC_RELOC_SECTDIFF.html" title='goblin::mach::relocation::GENERIC_RELOC_SECTDIFF constant'>GENERIC_RELOC_SECTDIFF</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.GENERIC_RELOC_VANILLA.html" title='goblin::mach::relocation::GENERIC_RELOC_VANILLA constant'>GENERIC_RELOC_VANILLA</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.R_ABS.html" title='goblin::mach::relocation::R_ABS constant'>R_ABS</a></td><td class='docblock-short'><p>Absolute relocation type for Mach-O files</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.SIZEOF_RELOCATION_INFO.html" title='goblin::mach::relocation::SIZEOF_RELOCATION_INFO constant'>SIZEOF_RELOCATION_INFO</a></td><td class='docblock-short'></td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_UNSIGNED.html" title='goblin::mach::relocation::X86_64_RELOC_UNSIGNED constant'>X86_64_RELOC_UNSIGNED</a></td><td class='docblock-short'><p>Absolute address</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_SIGNED.html" title='goblin::mach::relocation::X86_64_RELOC_SIGNED constant'>X86_64_RELOC_SIGNED</a></td><td class='docblock-short'><p>Signed 32-bit displacement</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_BRANCH.html" title='goblin::mach::relocation::X86_64_RELOC_BRANCH constant'>X86_64_RELOC_BRANCH</a></td><td class='docblock-short'><p>A CALL/JMP instruction with 32-bit displacement</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_GOT_LOAD.html" title='goblin::mach::relocation::X86_64_RELOC_GOT_LOAD constant'>X86_64_RELOC_GOT_LOAD</a></td><td class='docblock-short'><p>A MOVQ load of a GOT entry</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_GOT.html" title='goblin::mach::relocation::X86_64_RELOC_GOT constant'>X86_64_RELOC_GOT</a></td><td class='docblock-short'><p>Other GOT references</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_SUBTRACTOR.html" title='goblin::mach::relocation::X86_64_RELOC_SUBTRACTOR constant'>X86_64_RELOC_SUBTRACTOR</a></td><td class='docblock-short'><p>Must be followed by a X86_64_RELOC_UNSIGNED relocation</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_TLV.html" title='goblin::mach::relocation::X86_64_RELOC_TLV constant'>X86_64_RELOC_TLV</a></td><td class='docblock-short'><p>for thread local variables</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_SIGNED_1.html" title='goblin::mach::relocation::X86_64_RELOC_SIGNED_1 constant'>X86_64_RELOC_SIGNED_1</a></td><td class='docblock-short'><p>for signed 32-bit displacement with a -1 addend</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_SIGNED_2.html" title='goblin::mach::relocation::X86_64_RELOC_SIGNED_2 constant'>X86_64_RELOC_SIGNED_2</a></td><td class='docblock-short'><p>for signed 32-bit displacement with a -2 addend</p>
|
||
</td></tr><tr class='module-item'><td><a class="constant" href="constant.X86_64_RELOC_SIGNED_4.html" title='goblin::mach::relocation::X86_64_RELOC_SIGNED_4 constant'>X86_64_RELOC_SIGNED_4</a></td><td class='docblock-short'><p>for signed 32-bit displacement with a -4 addend</p>
|
||
</td></tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||
<table><tr class='module-item'><td><a class="fn" href="fn.reloc_to_str.html" title='goblin::mach::relocation::reloc_to_str fn'>reloc_to_str</a></td><td class='docblock-short'></td></tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||
<table><tr class='module-item'><td><a class="type" href="type.RelocType.html" title='goblin::mach::relocation::RelocType type'>RelocType</a></td><td class='docblock-short'></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> |