Messages in this thread | | | From | Rong Tao <> | Subject | Re: [PATCH v2 5/8] objtool: reduce memory usage of struct reloc | Date | Thu, 29 Dec 2022 11:29:07 +0800 |
| |
Hi, Thomas:
In /usr/include/elf.h has:
#define ELF32_R_TYPE(val) ((val) & 0xff) #define ELF64_R_TYPE(i) ((i) & 0xffffffff) ^^^^^^^^^^
So, I still feel that keeping 'unsigned int' is a good option. Can we just use __attribute__((packed)) for wasted padding bytes?
Reviewed-by: Rong Tao <rongtao@cestc.cn>
| |