From: Russell King - ARM Linux admin <linux@armlinux.org.uk> To: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Arnd Bergmann <arnd@arndb.de>, Ard Biesheuvel <ard.biesheuvel@linaro.org> Subject: Re: [PATCH] arm: vdso: pass --be8 to linker if necessary Date: Fri, 31 May 2019 09:37:24 +0100 [thread overview] Message-ID: <20190531083724.uc32co24qxfodlty@shell.armlinux.org.uk> (raw) In-Reply-To: <CAK7LNARFUaaJH+g3oGzwFyKnELum72nOzxnvUfMKYBaAoGVkug@mail.gmail.com> On Fri, May 31, 2019 at 11:01:23AM +0900, Masahiro Yamada wrote: > Hi Jason, > > Thanks for catching this. > > On Thu, May 30, 2019 at 3:26 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote: > > > > The commit fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instead of $(CC) > > to link VDSO") removed the passing of CFLAGS, since ld doesn't take > > those directly. However, prior, big-endian ARM was relying on gcc to > > translate its -mbe8 option into ld's --be8 option. Lacking this, ld > > > 'git grep -- -mbe8' has no hit. It isn't -mbe8, it is --be8 $ arm-linux-gcc --target-help ... --be8 Output BE8 format image > > Is it a toolchain internal flag? > > > > > generated be32 code, making the VDSO generate SIGILL when called by > > userspace. > > > > This commit passes --be8 if CONFIG_CPU_ENDIAN_BE8 is enabled. > > > > Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> > > Cc: Masahiro Yamada <yamada.masahiro@socionext.com> > > Cc: Russell King <rmk+kernel@armlinux.org.uk> > > Cc: Arnd Bergmann <arnd@arndb.de> > > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> > > --- > > arch/arm/vdso/Makefile | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile > > index fadf554d9391..1f5ec9741e6d 100644 > > --- a/arch/arm/vdso/Makefile > > +++ b/arch/arm/vdso/Makefile > > @@ -10,9 +10,10 @@ obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) > > ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector > > ccflags-y += -DDISABLE_BRANCH_PROFILING > > > > -ldflags-y = -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ > > +ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8 > > +ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ > > -z max-page-size=4096 -z common-page-size=4096 \ > > - -nostdlib -shared \ > > + -nostdlib -shared $(ldflags-y) \ > > $(call ld-option, --hash-style=sysv) \ > > $(call ld-option, --build-id) \ > > -T > > -- > > 2.21.0 > > > > > -- > Best Regards > Masahiro Yamada > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up
WARNING: multiple messages have this Message-ID (diff)
From: Russell King - ARM Linux admin <linux@armlinux.org.uk> To: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>, Arnd Bergmann <arnd@arndb.de>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, Ard Biesheuvel <ard.biesheuvel@linaro.org> Subject: Re: [PATCH] arm: vdso: pass --be8 to linker if necessary Date: Fri, 31 May 2019 09:37:24 +0100 [thread overview] Message-ID: <20190531083724.uc32co24qxfodlty@shell.armlinux.org.uk> (raw) In-Reply-To: <CAK7LNARFUaaJH+g3oGzwFyKnELum72nOzxnvUfMKYBaAoGVkug@mail.gmail.com> On Fri, May 31, 2019 at 11:01:23AM +0900, Masahiro Yamada wrote: > Hi Jason, > > Thanks for catching this. > > On Thu, May 30, 2019 at 3:26 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote: > > > > The commit fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instead of $(CC) > > to link VDSO") removed the passing of CFLAGS, since ld doesn't take > > those directly. However, prior, big-endian ARM was relying on gcc to > > translate its -mbe8 option into ld's --be8 option. Lacking this, ld > > > 'git grep -- -mbe8' has no hit. It isn't -mbe8, it is --be8 $ arm-linux-gcc --target-help ... --be8 Output BE8 format image > > Is it a toolchain internal flag? > > > > > generated be32 code, making the VDSO generate SIGILL when called by > > userspace. > > > > This commit passes --be8 if CONFIG_CPU_ENDIAN_BE8 is enabled. > > > > Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> > > Cc: Masahiro Yamada <yamada.masahiro@socionext.com> > > Cc: Russell King <rmk+kernel@armlinux.org.uk> > > Cc: Arnd Bergmann <arnd@arndb.de> > > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> > > --- > > arch/arm/vdso/Makefile | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile > > index fadf554d9391..1f5ec9741e6d 100644 > > --- a/arch/arm/vdso/Makefile > > +++ b/arch/arm/vdso/Makefile > > @@ -10,9 +10,10 @@ obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) > > ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector > > ccflags-y += -DDISABLE_BRANCH_PROFILING > > > > -ldflags-y = -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ > > +ldflags-$(CONFIG_CPU_ENDIAN_BE8) := --be8 > > +ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ > > -z max-page-size=4096 -z common-page-size=4096 \ > > - -nostdlib -shared \ > > + -nostdlib -shared $(ldflags-y) \ > > $(call ld-option, --hash-style=sysv) \ > > $(call ld-option, --build-id) \ > > -T > > -- > > 2.21.0 > > > > > -- > Best Regards > Masahiro Yamada > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-05-31 8:37 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-29 18:23 [PATCH] arm: vdso: pass --be8 to linker if necessary Jason A. Donenfeld 2019-05-29 18:23 ` Jason A. Donenfeld 2019-05-31 2:01 ` Masahiro Yamada 2019-05-31 2:01 ` Masahiro Yamada 2019-05-31 8:17 ` Jason A. Donenfeld 2019-05-31 8:17 ` Jason A. Donenfeld 2019-06-18 14:56 ` Masahiro Yamada 2019-06-18 14:56 ` Masahiro Yamada 2019-05-31 8:37 ` Russell King - ARM Linux admin [this message] 2019-05-31 8:37 ` Russell King - ARM Linux admin 2019-06-13 17:03 ` Jason A. Donenfeld 2019-06-13 17:03 ` Jason A. Donenfeld
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=20190531083724.uc32co24qxfodlty@shell.armlinux.org.uk \ --to=linux@armlinux.org.uk \ --cc=Jason@zx2c4.com \ --cc=ard.biesheuvel@linaro.org \ --cc=arnd@arndb.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=yamada.masahiro@socionext.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.