summaryrefslogtreecommitdiffstats
path: root/include/linux/elfnote-lto.h
blob: d4635a3ecc4fcdd7f349044f271a366cdf81cc19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __ELFNOTE_LTO_H
#define __ELFNOTE_LTO_H

#include <linux/elfnote.h>

#define LINUX_ELFNOTE_LTO_INFO	0x101

#ifdef CONFIG_LTO
#define BUILD_LTO_INFO	ELFNOTE32("Linux", LINUX_ELFNOTE_LTO_INFO, 1)
#else
#define BUILD_LTO_INFO	ELFNOTE32("Linux", LINUX_ELFNOTE_LTO_INFO, 0)
#endif

#endif /* __ELFNOTE_LTO_H */