Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1354052

[tip:core/objtool] objtool: Compile with debugging symbols

From tip-bot for Josh Poimboeuf <tipbot@zytor.com>
Newsgroups linux.kernel
Subject [tip:core/objtool] objtool: Compile with debugging symbols
Date 2016-03-09 12:50 +0100
Message-ID <raKMP-7m0-39@gated-at.bofh.it> (permalink)
References <raFtM-3Rr-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Commit-ID:  d435fb5ef74c31909ca58f93aa87ad09b17bbe9a
Gitweb:     http://git.kernel.org/tip/d435fb5ef74c31909ca58f93aa87ad09b17bbe9a
Author:     Josh Poimboeuf <jpoimboe@redhat.com>
AuthorDate: Wed, 9 Mar 2016 00:06:53 -0600
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 9 Mar 2016 10:48:08 +0100

objtool: Compile with debugging symbols

Compile objtool with debugging symbols ('-g') to help tools like perf
and gdb understand what it's doing.  Combined with '-O2', it's not
always helpful, but it's better than nothing.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Bernd Petrovitsch <bernd@petrovitsch.priv.at>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chris J Arges <chris.j.arges@canonical.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Pedro Alves <palves@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: live-patching@vger.kernel.org
Link: http://lkml.kernel.org/r/c295e9ee9ed360dc8b2e1d180c859f11cfc151ef.1457502970.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 tools/objtool/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index e4a6bd5..6765c7e 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -27,7 +27,7 @@ OBJTOOL_IN := $(OBJTOOL)-in.o
 all: $(OBJTOOL)
 
 INCLUDES := -I$(srctree)/tools/include
-CFLAGS   += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 $(INCLUDES)
+CFLAGS   += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES)
 LDFLAGS  += -lelf $(LIBSUBCMD)
 
 AWK = awk

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/11] Various objtool fixes Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
  [PATCH 01/11] objtool: Prevent infinite recursion in noreturn detection Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Prevent infinite recursion in noreturn  detection tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 05/11] objtool: Add helper macros for traversing instructions Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Add helper macros for traversing  instructions tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 10/11] objtool: Add several performance improvements Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Add several performance improvements tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 03/11] objtool: Compile with debugging symbols Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Compile with debugging symbols tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 04/11] objtool: Fix false positive warnings related to sibling calls Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Fix false positive warnings related to  sibling calls tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 02/11] objtool: Detect infinite recursion Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:10 +0100
    [tip:core/objtool] objtool: Detect infinite recursion tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 06/11] objtool: Remove superflous INIT_LIST_HEAD Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:20 +0100
    [tip:core/objtool] objtool: Remove superflous INIT_LIST_HEAD tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 07/11] objtool: Rename some variables and functions Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:20 +0100
    [tip:core/objtool] objtool: Rename some variables and functions tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 08/11] objtool: Fix false positive warnings for functions with multiple switch statements Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:20 +0100
    [tip:core/objtool] objtool: Fix false positive warnings for  functions with multiple switch statements tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100
  [PATCH 09/11] tools/objtool: Copy hashtable.h into tools directory Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 07:20 +0100
    Re: [PATCH 09/11] tools/objtool: Copy hashtable.h into tools  directory Ingo Molnar <mingo@kernel.org> - 2016-03-09 10:50 +0100
      Re: [PATCH 09/11] tools/objtool: Copy hashtable.h into tools  directory Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-09 17:10 +0100
        Re: [PATCH 09/11] tools/objtool: Copy hashtable.h into tools  directory Ingo Molnar <mingo@kernel.org> - 2016-03-09 19:50 +0100
    [tip:core/objtool] tools: Copy hashtable.h into tools directory tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-09 12:50 +0100

csiph-web