On 1/20/23 12:12 PM, Sedat Dilek wrote:
As long as I am using CONFIG_DEBUG_INFO_BTF=y with LLVM/Clang
I have noticed the below macros where defined unconsistently.
See here pahole latest Git...
[ pahole:dwarf_loader ]
/* Match the define in linux:include/linux/elfnote.h */
#define LINUX_ELFNOTE_BUILD_LTO 0x101
...and latest Linus v6.2-rc4+ Git:
[ linux:include/linux/elfnote-lto.h ]
#define LINUX_ELFNOTE_LTO_INFO 0x101
Yonghong Song says:
Ya, LINUX_ELFNOTE_BUILD_LTO is initially proposed macro name but later
the formal kernel patch used LINUX_ELFNOTE_LTO_INFO. Could you submit
a pahole for this so it is consistent with kernel? Thanks!
Fix this by syncing the pahole macro with the one from linux-kernel.
Suggested-by: Yonghong Song <yhs@xxxxxxxx>
Signed-off-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>
Thanks!
Acked-by: Yonghong Song <yhs@xxxxxx>