Re: [PATCH] module: Add the print format of Elf_Addr for 32/64-bit compatibly

2018-08-09 Thread Zong Li
Zong Li 於 2018年7月17日 週二 上午11:06寫道: > > Use a similar way like fixed width integer types in inttypes.h. > > For the ELF, the Elf32_Addr is int type and Elf64_Addr is long long > type. It is opposite to definition of inttypes.h, so the Elf_Addr cannot > re-use the header. > > In many architectures,

[PATCH] module: Add the print format of Elf_Addr for 32/64-bit compatibly

2018-07-16 Thread Zong Li
Use a similar way like fixed width integer types in inttypes.h. For the ELF, the Elf32_Addr is int type and Elf64_Addr is long long type. It is opposite to definition of inttypes.h, so the Elf_Addr cannot re-use the header. In many architectures, the module loader only print the message of module