* [PATCH 1/3] Make it possible for the linker to discard local symbols from vmlinux
@ 2009-02-17 16:55 David Howells
2009-02-17 16:55 ` [PATCH 2/3] MN10300: Fix oprofile David Howells
2009-02-17 16:56 ` [PATCH 3/3] MN10300: Fix typo && -> || in arch/mn10300/unit-asb2305/pci.c David Howells
0 siblings, 2 replies; 3+ messages in thread
From: David Howells @ 2009-02-17 16:55 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-am33-list, linux-kernel, David Howells
Make it possible for the linker to discard local symbols from vmlinux as they
cause vmlinux to balloon when CONFIG_KALLSYMS=y and they cause dump_stack() and
get_wchan() to produce useless information under some circumstances.
With this we add a config option (CONFIG_STRIP_ASM_SYMS) that will cause the
build to supply -X to the linker to tell it to strip temporary local symbols.
This doesn't seem to cause gdb any problems.
Signed-off-by: David Howells <dhowells@redhat.com>
---
Makefile | 4 ++++
init/Kconfig | 8 ++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 22d7584..359470f 100644
--- a/Makefile
+++ b/Makefile
@@ -589,6 +589,10 @@ LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
+ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
+LDFLAGS_vmlinux += -X
+endif
+
# Default kernel image to build when no specific target is given.
# KBUILD_IMAGE may be overruled on the command line or
# set in the environment
diff --git a/init/Kconfig b/init/Kconfig
index f068071..50c267a 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -737,6 +737,14 @@ config KALLSYMS_EXTRA_PASS
you wait for kallsyms to be fixed.
+config STRIP_ASM_SYMS
+ bool "Strip assembler-generated symbols during link"
+ default n
+ help
+ Strip internal assembler-generated symbols during a link (symbols
+ that look like '.Lxxx') so they don't pollute the output of
+ get_wchan() and suchlike.
+
config HOTPLUG
bool "Support for hot-pluggable devices" if EMBEDDED
default y
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/3] MN10300: Fix oprofile
2009-02-17 16:55 [PATCH 1/3] Make it possible for the linker to discard local symbols from vmlinux David Howells
@ 2009-02-17 16:55 ` David Howells
2009-02-17 16:56 ` [PATCH 3/3] MN10300: Fix typo && -> || in arch/mn10300/unit-asb2305/pci.c David Howells
1 sibling, 0 replies; 3+ messages in thread
From: David Howells @ 2009-02-17 16:55 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-am33-list, linux-kernel, David Howells
oprofile for MN10300 seems to have been broken by the advent of the new tracing
framework.
Signed-off-by: David Howells <dhowells@redhat.com>
---
arch/mn10300/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/mn10300/Kconfig b/arch/mn10300/Kconfig
index 9a9f433..41d1682 100644
--- a/arch/mn10300/Kconfig
+++ b/arch/mn10300/Kconfig
@@ -7,6 +7,7 @@ mainmenu "Linux Kernel Configuration"
config MN10300
def_bool y
+ select HAVE_OPROFILE
config AM33
def_bool y
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 3/3] MN10300: Fix typo && -> || in arch/mn10300/unit-asb2305/pci.c
2009-02-17 16:55 [PATCH 1/3] Make it possible for the linker to discard local symbols from vmlinux David Howells
2009-02-17 16:55 ` [PATCH 2/3] MN10300: Fix oprofile David Howells
@ 2009-02-17 16:56 ` David Howells
1 sibling, 0 replies; 3+ messages in thread
From: David Howells @ 2009-02-17 16:56 UTC (permalink / raw)
To: torvalds, akpm; +Cc: linux-am33-list, linux-kernel, Wei Yongjun, David Howells
From: Wei Yongjun <yjwei@cn.fujitsu.com>
Fix the typo && -> ||.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David Howells <dhowells@redhat.com>
---
arch/mn10300/unit-asb2305/pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c
index 1a86425..07dbbcd 100644
--- a/arch/mn10300/unit-asb2305/pci.c
+++ b/arch/mn10300/unit-asb2305/pci.c
@@ -173,7 +173,7 @@ static int pci_ampci_write_config_byte(struct pci_bus *bus, unsigned int devfn,
BRIDGEREGB(where) = value;
} else {
if (bus->number == 0 &&
- (devfn == PCI_DEVFN(2, 0) && devfn == PCI_DEVFN(3, 0))
+ (devfn == PCI_DEVFN(2, 0) || devfn == PCI_DEVFN(3, 0))
)
__pcidebug("<= %02x", bus, devfn, where, value);
CONFIG_ADDRESS = CONFIG_CMD(bus, devfn, where);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-17 16:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-17 16:55 [PATCH 1/3] Make it possible for the linker to discard local symbols from vmlinux David Howells
2009-02-17 16:55 ` [PATCH 2/3] MN10300: Fix oprofile David Howells
2009-02-17 16:56 ` [PATCH 3/3] MN10300: Fix typo && -> || in arch/mn10300/unit-asb2305/pci.c David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®