From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Markus <M4rkusXXL@web.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
lkml <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@kernel.org>
Subject: Re: objtool segfault with ORC unwinder enabled
Date: Thu, 4 Jan 2018 09:46:13 -0600 [thread overview]
Message-ID: <20180104154613.rqpueangb3f4fpox@treble> (raw)
In-Reply-To: <2570840.NclWvBoOoG@markus>
On Wed, Jan 03, 2018 at 06:26:19PM +0100, Markus wrote:
> > > > I'm unable to recreate. Can you attach one of the .o files (like the
> > > > above irq.o)?
> > >
> > > Sure, see attached. (From vanilla linux-4.14.11.)
> >
> > There's something weird with the toolchain. The object file doesn't
> > have an ELF section symbol for the .irqentry.text section.
> >
> > Are there any special KCFLAGS being added? Can you build the object
> > with V=1 to show the full gcc command line?
>
> I have not added anything. There is no env variable set like $KCFLAGS or
> $CFLAGS. (If that was the question.)
>
> I think you mean this line from output:
> gcc -Wp,-MD,arch/x86/kernel/.irq.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-
> pc-linux-gnu/6.4.0/include -I./arch/x86/include -I./arch/x86/include/generated
> -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./
> include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -
> D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-
> aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-
> format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -
> mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -
> mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -
> mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -
> DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1
> -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -
> DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-
> sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -
> Wno-frame-address -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -
> Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -
> Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -
> Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-
> stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -
> Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -
> Iarch/x86/kernel/../include/asm/trace -DKBUILD_BASENAME='"irq"' -
> DKBUILD_MODNAME='"irq"' -c -o arch/x86/kernel/.tmp_irq.o arch/x86/kernel/irq.c
>
> The next line is the objtool that segfaults.
I don't see anything unusual there. Are there any Gentoo patches
against either the kernel or GCC which would strip unused symbols?
--
Josh
next prev parent reply other threads:[~2018-01-04 15:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-03 10:49 objtool segfault with ORC unwinder enabled Markus
2018-01-03 11:19 ` Greg Kroah-Hartman
2018-01-03 12:22 ` Markus
2018-01-03 13:59 ` Josh Poimboeuf
2018-01-03 14:14 ` Markus
2018-01-03 16:36 ` Josh Poimboeuf
2018-01-03 17:26 ` Markus
2018-01-04 15:46 ` Josh Poimboeuf [this message]
2018-01-04 16:56 ` Markus
2018-01-04 17:32 ` Josh Poimboeuf
2018-01-04 18:25 ` Markus
2018-01-10 17:14 ` Markus
2018-01-11 4:13 ` Josh Poimboeuf
2018-01-11 4:25 ` Josh Poimboeuf
2018-01-11 18:11 ` Markus
2018-01-11 18:20 ` Josh Poimboeuf
2018-01-11 18:52 ` Markus
2018-01-11 19:38 ` Josh Poimboeuf
2018-01-11 20:00 ` Markus
2018-01-11 20:19 ` Josh Poimboeuf
2018-01-03 14:14 ` Greg Kroah-Hartman
2018-01-03 14:36 ` Markus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180104154613.rqpueangb3f4fpox@treble \
--to=jpoimboe@redhat.com \
--cc=M4rkusXXL@web.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox