switch the order of payload and prelude

This commit is contained in:
Igor Klopov 2017-05-08 11:21:14 -07:00
parent 054ea5282e
commit 7e919d0789
4 changed files with 36 additions and 36 deletions

View File

@ -528,6 +528,15 @@
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x26e0c928,
+ 0x6713e24e, 0x3ea13ccf, &position, &size)
+ ) {
@ -535,15 +544,6 @@
+ setenv("PKG_PRELUDE_POSITION", env, 1);
+ sprintf(env, "%d", size);
+ setenv("PKG_PRELUDE_SIZE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+ }
+
+ fclose(file);

View File

@ -589,6 +589,15 @@
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x26e0c928,
+ 0x6713e24e, 0x3ea13ccf, &position, &size)
+ ) {
@ -596,15 +605,6 @@
+ setenv("PKG_PRELUDE_POSITION", env, 1);
+ sprintf(env, "%d", size);
+ setenv("PKG_PRELUDE_SIZE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+ }
+
+ fclose(file);

View File

@ -598,6 +598,15 @@
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x26e0c928,
+ 0x6713e24e, 0x3ea13ccf, &position, &size)
+ ) {
@ -605,15 +614,6 @@
+ setenv("PKG_PRELUDE_POSITION", env, 1);
+ sprintf(env, "%d", size);
+ setenv("PKG_PRELUDE_SIZE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+ }
+
+ fclose(file);

View File

@ -614,6 +614,15 @@
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x26e0c928,
+ 0x6713e24e, 0x3ea13ccf, &position, &size)
+ ) {
@ -621,15 +630,6 @@
+ setenv("PKG_PRELUDE_POSITION", env, 1);
+ sprintf(env, "%d", size);
+ setenv("PKG_PRELUDE_SIZE", env, 1);
+
+ position -= 16; // align back to boundary
+ }
+
+ if (GetSentryPosition(file, position, 0x75148eba,
+ 0x1aa9270e, 0x2e20c08d, &position, &size)
+ ) {
+ sprintf(env, "%d", position);
+ setenv("PKG_PAYLOAD_BASE", env, 1);
+ }
+
+ fclose(file);