ELF physical address. Need a refresh.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
JulienDarc
Member
Member
Posts: 97
Joined: Tue Mar 10, 2015 10:08 am

ELF physical address. Need a refresh.

Post by JulienDarc »

Hello,

I just need a slight remainder. I read again the ELF wiki page http://wiki.osdev.org/ELF#File_Structure.

Can someone tell me when I need to take care of the physical address provided by the elf header sections on modern Unix systems ?
I guess even DMA is not concerned, since you allocate it at runtime, and make use of the physical allocator.

Is it something to remain compatible with systems that don't have virtual memory / didn't enable it yet (boot, real mode...) ?


Thanks

Julien
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: ELF physical address. Need a refresh.

Post by jnc100 »

The specifications are relatively clear:
ELF Standard wrote:p_paddr: On systems for which physical addressing is relevant, this member is reserved for the segment’s physical address. Because System V ignores physical addressing for application programs, this member has unspecified contents for executable files and shared objects.
Regards,
John.
JulienDarc
Member
Member
Posts: 97
Joined: Tue Mar 10, 2015 10:08 am

Re: ELF physical address. Need a refresh.

Post by JulienDarc »

Thanks jnc,

I massively sucked on this one.

:lol:

Bye
Post Reply