this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[mldr] Add Documentation For "entryPoint" And Throw Error If Implementation Is Missing For Arch

+6 -3
+6 -3
src/startup/mldr/loader.c
··· 248 248 } 249 249 case LC_UNIXTHREAD: 250 250 { 251 - #ifdef GEN_64BIT 251 + #if defined(__x86_64__) 252 + // Grab rip from x86_thread_state64 252 253 entryPoint = ((uint64_t*) lc)[18]; 253 - #endif 254 - #ifdef GEN_32BIT 254 + #elif defined(__i386__) 255 + // Grab eip from i386_thread_state 255 256 entryPoint = ((uint32_t*) lc)[14]; 257 + #else 258 + #error "Missing entryPoint assignment from thread state" 256 259 #endif 257 260 entryPoint += slide; 258 261 break;