Elf_Dyn_Impl Question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Elf_Dyn_Impl Question

Sid Manning
Should Elf_Dyn_Impl in Object/ELF.h also have a 32bit version.
getTag/getVal/getPtr all return 64bit types however Elf_Addr etc will
not always be 32bit?
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Elf_Dyn_Impl Question

Michael Spencer-4
On Fri, Jul 6, 2012 at 9:51 AM, Sid Manning <[hidden email]> wrote:
> Should Elf_Dyn_Impl in Object/ELF.h also have a 32bit version.
> getTag/getVal/getPtr all return 64bit types however Elf_Addr etc will not
> always be 32bit?

While these accessors are not strictly necessary, they are correct.
The values will be read as 32/64 and losslessly converted to 64 bit.

- Michael Spencer
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev