diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-02 17:58:12 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-02 17:58:12 -0400 |
| commit | e965b8ce4215ac2b22b23ffc8a8dfbae964b9496 (patch) | |
| tree | 9f7d23f14655c214d4e1f54760a841df2c987459 /lib | |
| parent | a95cb3cd55c208372ca68d5e8a9923611fed7235 (diff) | |
| parent | 50ab9a69275dca588cb5ad5038657f069bbdeb56 (diff) | |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild updates from Michal Marek:
"Just a few kbuild core commits this time:
- kallsyms fix for CONFIG_XIP_KERNEL
- bashisms in scripts/link-vmlinux.sh fixed
- workaround to make DEBUG_INFO_REDUCED more useful yet still space
efficient
- clang is not wrongly detected when cross-compiling"
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
kbuild: include core debug info when DEBUG_INFO_REDUCED
scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel
scripts: fix link-vmlinux.sh bash-ism
Makefile: Fix detection of clang when cross-compiling
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile | 3 | ||||
| -rw-r--r-- | lib/debug_info.c | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index ff37c8c2f7b2..6897b527581a 100644 --- a/lib/Makefile +++ b/lib/Makefile | |||
| @@ -45,6 +45,9 @@ CFLAGS_kobject.o += -DDEBUG | |||
| 45 | CFLAGS_kobject_uevent.o += -DDEBUG | 45 | CFLAGS_kobject_uevent.o += -DDEBUG |
| 46 | endif | 46 | endif |
| 47 | 47 | ||
| 48 | obj-$(CONFIG_DEBUG_INFO_REDUCED) += debug_info.o | ||
| 49 | CFLAGS_debug_info.o += $(call cc-option, -femit-struct-debug-detailed=any) | ||
| 50 | |||
| 48 | obj-$(CONFIG_GENERIC_IOMAP) += iomap.o | 51 | obj-$(CONFIG_GENERIC_IOMAP) += iomap.o |
| 49 | obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o | 52 | obj-$(CONFIG_GENERIC_PCI_IOMAP) += pci_iomap.o |
| 50 | obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o | 53 | obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o |
diff --git a/lib/debug_info.c b/lib/debug_info.c new file mode 100644 index 000000000000..2edbe27517ed --- /dev/null +++ b/lib/debug_info.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | * This file exists solely to ensure debug information for some core | ||
| 3 | * data structures is included in the final image even for | ||
| 4 | * CONFIG_DEBUG_INFO_REDUCED. Please do not add actual code. However, | ||
| 5 | * adding appropriate #includes is fine. | ||
| 6 | */ | ||
| 7 | #include <stdarg.h> | ||
| 8 | |||
| 9 | #include <linux/cred.h> | ||
| 10 | #include <linux/crypto.h> | ||
| 11 | #include <linux/dcache.h> | ||
| 12 | #include <linux/device.h> | ||
| 13 | #include <linux/fs.h> | ||
| 14 | #include <linux/fscache-cache.h> | ||
| 15 | #include <linux/io.h> | ||
| 16 | #include <linux/kallsyms.h> | ||
| 17 | #include <linux/kernel.h> | ||
| 18 | #include <linux/kobject.h> | ||
| 19 | #include <linux/mm.h> | ||
| 20 | #include <linux/module.h> | ||
| 21 | #include <linux/net.h> | ||
| 22 | #include <linux/sched.h> | ||
| 23 | #include <linux/slab.h> | ||
| 24 | #include <linux/types.h> | ||
| 25 | #include <net/addrconf.h> | ||
| 26 | #include <net/sock.h> | ||
| 27 | #include <net/tcp.h> | ||
