Re: [PATCH v2 5/8] objtool: reduce memory usage of struct reloc

From: Rong Tao
Date: Wed Dec 28 2022 - 22:29:21 EST


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@xxxxxxxx>