Is there a way to get a program's relocated address? I think I need
this to make my program work correctly when run from loader via tftp...
I access a PCI device, the code at one point calls virt_to_bus, which
uses an extern unsigned int offset which is 0, but there is a comment
saying that the offset should be set to the program's relocated address
instead of 0... Running my program from grub works just fine, but not
from loader, presumably because of this. The program itself "works"
from loader, but not the PCI interfacing, so I'm sure its got something
to do with relocation.
Any help would be greatly appreciated.