Skip to content

Instantly share code, notes, and snippets.

@segfo
Created July 8, 2016 17:50
Show Gist options
  • Save segfo/4c1bf22eb879b353602816025b572d39 to your computer and use it in GitHub Desktop.
Save segfo/4c1bf22eb879b353602816025b572d39 to your computer and use it in GitHub Desktop.
C的な擬似コード
void EntryPoint_1(){
  int stack[6];
stack[5] = 0x80534e0; // _deh_end
stack[4] = 0x80534c8; // _deh_begin
stack[3] = 0x80534c8; // _minfo_end
stack[2] = 0x80534a8; // _minfo_begin
stack[1] = 0x8050100; // _slot
stack[0] = 0x1; // version
_d_dso_registry(&stack);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment