0

I'm running linux and I want to access /proc/kallsyms from outside the OS. I'm writing an SMM driver (EDK2) that's written in C, but I cannot use stdio functions like fopen, because compiler (GCC) says

undefined reference to "fopen"

even though I use #include <stdio.h> and other packages within EDK2 use stdio (go figure \o/)

So I'm wondering is there a way I can access /proc/kallsyms without using functions like fopen or open (which btw I tried to use, same error) ??

It'd need to be "pure C" -ish, if you know what I mean, given that it would not be executed on OS level. Any help or suggestion would be appreciated.

Allan Almeida
  • 13
  • 1
  • 5

0 Answers0