-
Hi everyone, I come from a Python background and I am a very beginner in C, EFI and gnu-efi but I managed to get a working utility for disabling defective ram on my MacBookPro Late 2013 using "Allocate Pages". https://github.com/0nelight/macOS-Disable-RAM-Areas My problem is that I want to share this solution, and while it works for one user, another user reports of hangs of the program. I relied heavily on ChatGPT for my previous (working for me and at least one other user) code, but now I want to do it by hand to find out why the hang is occuring for some users. Now I thought I start with something very simple - writing "Hello World" with the functions of the gnu-efi program to abstract away the stuff I did before to make the code more clean. But when using the print function, nothing gets printed when executing this via rEFInd Boot Manager.
Also using the uefi-call-wrapper for calling the conOut doesn't bring me success. Strangly the Stall command beneath it (which gets also called with the uefi-wrapper) works.
Adding EFIAPI or not before efi_main doesn't make a difference regarding the print function or the uefi_call_wrapper with ConOut. How can I get to the bottom of why print doesn't work? For my compiler settings they are here using the 5560e570 commit of you here on GitHub. Thank You |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Looks like objcopy is missing .rodata? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! It is working now with rodata inserted! 💯 |
Beta Was this translation helpful? Give feedback.
Looks like objcopy is missing .rodata?