ELF, Program Header, convert virtual addresses to physical addresses
Torsten Mohr
tmohr@s.netic.de
Thu Aug 18 18:06:00 GMT 2005
Hi,
> What is the context? In other words, why do you want to do this?
i use this conversion in a perl script that sets converts
an ELF file into a memory image and downloads it into a
micro. This script also does some specific changes to
an ELF file.
> Evidently Green Hills doesn't use p_paddr at all. Presumably for them
> p_paddr is always the same as p_vaddr.
So isn't that a bug? How can other tools like objcopy
then convert such an ELF file?
Isn't there a rule how to convert virtual addresses to
physical addresses?
Best regards,
Torsten.
More information about the Binutils
mailing list