44670/NTR

Makefile issue(?)

Closed this issue · 4 comments

Seems due to the nature of bootloader.s, you need -pie passed to the linker. But that only solves half the problem. With -pie, the payload can run and everything is fine up till BootNTR says 'exiting...' then it crashes and ntr menu doesnt work.

44670 commented

-pie is not required, since it will relocate itself before jumping to c_entry (in bootloader.s)

well with a clean clone, it doesnt jump to ntr payload at all unless i add that. I compared the elfs of makefile compiled and python compiled to see why only python one works and it shows differences in the bootloader, specifically __rel_dyn_start and stuff.

The builds with the new makefile are (still?) untested. So no surprise you are running into problems.

44670 commented

Sorry I was wrong, -pie was required for linker