enumstd.coff.ImageRelAmd64[src]

Fields

absolute = 0

The relocation is ignored.

addr64 = 1

The 64-bit VA of the relocation target.

addr32 = 2

The 32-bit VA of the relocation target.

addr32nb = 3

The 32-bit address without an image base.

rel32 = 4

The 32-bit relative address from the byte following the relocation.

rel32_1 = 5

The 32-bit address relative to byte distance 1 from the relocation.

rel32_2 = 6

The 32-bit address relative to byte distance 2 from the relocation.

rel32_3 = 7

The 32-bit address relative to byte distance 3 from the relocation.

rel32_4 = 8

The 32-bit address relative to byte distance 4 from the relocation.

rel32_5 = 9

The 32-bit address relative to byte distance 5 from the relocation.

section = 10

The 16-bit section index of the section that contains the target. This is used to support debugging information.

secrel = 11

The 32-bit offset of the target from the beginning of its section. This is used to support debugging information and static thread local storage.

secrel7 = 12

A 7-bit unsigned offset from the base of the section that contains the target.

token = 13

CLR tokens.

srel32 = 14

A 32-bit signed span-dependent value emitted into the object.

pair = 15

A pair that must immediately follow every span-dependent value.

sspan32 = 16

A 32-bit signed span-dependent value that is applied at link time.

_

Source Code

Source code
pub const ImageRelAmd64 = enum(u16) {
    /// The relocation is ignored.
    absolute = 0,

    /// The 64-bit VA of the relocation target.
    addr64 = 1,

    /// The 32-bit VA of the relocation target.
    addr32 = 2,

    /// The 32-bit address without an image base.
    addr32nb = 3,

    /// The 32-bit relative address from the byte following the relocation.
    rel32 = 4,

    /// The 32-bit address relative to byte distance 1 from the relocation.
    rel32_1 = 5,

    /// The 32-bit address relative to byte distance 2 from the relocation.
    rel32_2 = 6,

    /// The 32-bit address relative to byte distance 3 from the relocation.
    rel32_3 = 7,

    /// The 32-bit address relative to byte distance 4 from the relocation.
    rel32_4 = 8,

    /// The 32-bit address relative to byte distance 5 from the relocation.
    rel32_5 = 9,

    /// The 16-bit section index of the section that contains the target.
    /// This is used to support debugging information.
    section = 10,

    /// The 32-bit offset of the target from the beginning of its section.
    /// This is used to support debugging information and static thread local storage.
    secrel = 11,

    /// A 7-bit unsigned offset from the base of the section that contains the target.
    secrel7 = 12,

    /// CLR tokens.
    token = 13,

    /// A 32-bit signed span-dependent value emitted into the object.
    srel32 = 14,

    /// A pair that must immediately follow every span-dependent value.
    pair = 15,

    /// A 32-bit signed span-dependent value that is applied at link time.
    sspan32 = 16,

    _,
}