public class

EEmuUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.emulator.EEmuUtil

Class Overview

Utility code IR emulators.

Summary

Public Constructors
EEmuUtil()
Public Methods
static long setupGenericThreadLocalStorageInfo(EEmulator emu, long pageAddress, boolean allocAndWrite)
Set-up platform-specific structures used for thread local storage (TLS) -like information.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EEmuUtil ()

Public Methods

public static long setupGenericThreadLocalStorageInfo (EEmulator emu, long pageAddress, boolean allocAndWrite)

Set-up platform-specific structures used for thread local storage (TLS) -like information. This routine works on a best-effort basis.

Parameters
emu emulator
pageAddress base address for TLS data
allocAndWrite if true, a page for TLS data will be allocated (preferably at the provided address), and pseudo TLS values will be written on that page
Returns
  • the actual TLS base address