linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag
@ 2018-12-10 22:31 ndesaulniers
  2019-01-14 21:50 ` Nick Desaulniers
  2019-04-24  7:29 ` Arnd Bergmann
  0 siblings, 2 replies; 5+ messages in thread
From: ndesaulniers @ 2018-12-10 22:31 UTC (permalink / raw)
  To: linux
  Cc: Nick Desaulniers, Dmitry Vyukov, Andrew Morton, Mark Rutland,
	linux-arm-kernel, linux-kernel

GNU linker's -z common-page-size's default value is based on the target
architecture. arch/arm/vdso/Makefile sets it to the architecture
default, which is implicit and redundant. Drop it.

Link: https://lkml.kernel.org/r/20181206191231.192355-1-ndesaulniers@google.com
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
---
 arch/arm/vdso/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
index f4efff9d3afb..8f2fac5acbc8 100644
--- a/arch/arm/vdso/Makefile
+++ b/arch/arm/vdso/Makefile
@@ -11,7 +11,7 @@ ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector
 ccflags-y += -DDISABLE_BRANCH_PROFILING
 
 VDSO_LDFLAGS := -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-soname=linux-vdso.so.1
-VDSO_LDFLAGS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
+VDSO_LDFLAGS += -Wl,-z,max-page-size=4096
 VDSO_LDFLAGS += -nostdlib -shared
 VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
 VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--build-id)
-- 
2.20.0.rc2.403.gdbc3b29805-goog


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag
  2018-12-10 22:31 [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag ndesaulniers
@ 2019-01-14 21:50 ` Nick Desaulniers
  2019-04-24  7:29 ` Arnd Bergmann
  1 sibling, 0 replies; 5+ messages in thread
From: Nick Desaulniers @ 2019-01-14 21:50 UTC (permalink / raw)
  To: Russell King, Mark Rutland; +Cc: Dmitry Vyukov, Andrew Morton, Linux ARM, LKML

On Mon, Dec 10, 2018 at 2:32 PM <ndesaulniers@google.com> wrote:
>
> GNU linker's -z common-page-size's default value is based on the target
> architecture. arch/arm/vdso/Makefile sets it to the architecture
> default, which is implicit and redundant. Drop it.
>
> Link: https://lkml.kernel.org/r/20181206191231.192355-1-ndesaulniers@google.com
> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
> ---
>  arch/arm/vdso/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
> index f4efff9d3afb..8f2fac5acbc8 100644
> --- a/arch/arm/vdso/Makefile
> +++ b/arch/arm/vdso/Makefile
> @@ -11,7 +11,7 @@ ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector
>  ccflags-y += -DDISABLE_BRANCH_PROFILING
>
>  VDSO_LDFLAGS := -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-soname=linux-vdso.so.1
> -VDSO_LDFLAGS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
> +VDSO_LDFLAGS += -Wl,-z,max-page-size=4096
>  VDSO_LDFLAGS += -nostdlib -shared
>  VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
>  VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--build-id)
> --
> 2.20.0.rc2.403.gdbc3b29805-goog
>

Bumping for review.  This option has been removed from all other architectures.

-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag
  2018-12-10 22:31 [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag ndesaulniers
  2019-01-14 21:50 ` Nick Desaulniers
@ 2019-04-24  7:29 ` Arnd Bergmann
  2019-04-24 13:45   ` Nathan Lynch
  1 sibling, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2019-04-24  7:29 UTC (permalink / raw)
  To: Nick Desaulniers
  Cc: Russell King - ARM Linux, Mark Rutland,
	Linux Kernel Mailing List, Dmitry Vyukov, Andrew Morton,
	Linux ARM, Nathan Lynch

On Mon, Dec 10, 2018 at 11:32 PM <ndesaulniers@google.com> wrote:
>
> GNU linker's -z common-page-size's default value is based on the target
> architecture. arch/arm/vdso/Makefile sets it to the architecture
> default, which is implicit and redundant. Drop it.
>
> Link: https://lkml.kernel.org/r/20181206191231.192355-1-ndesaulniers@google.com
> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
> ---

The patch looks good to me,

Acked-by: Arnd Bergmann <arnd@arndb.de>

Adding Nathan Lynch to Cc though for further comments, he originally
added the Makefile flags here and might still remember why he did it.

Unless Nathan objects, please add the patch to Russell's patch tracker.

> diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
> index f4efff9d3afb..8f2fac5acbc8 100644
> --- a/arch/arm/vdso/Makefile
> +++ b/arch/arm/vdso/Makefile
> @@ -11,7 +11,7 @@ ccflags-y := -fPIC -fno-common -fno-builtin -fno-stack-protector
>  ccflags-y += -DDISABLE_BRANCH_PROFILING
>
>  VDSO_LDFLAGS := -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-soname=linux-vdso.so.1
> -VDSO_LDFLAGS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
> +VDSO_LDFLAGS += -Wl,-z,max-page-size=4096
>  VDSO_LDFLAGS += -nostdlib -shared
>  VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--hash-style=sysv)
>  VDSO_LDFLAGS += $(call cc-ldoption, -Wl$(comma)--build-id)
> --
> 2.20.0.rc2.403.gdbc3b29805-goog
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag
  2019-04-24  7:29 ` Arnd Bergmann
@ 2019-04-24 13:45   ` Nathan Lynch
  2019-04-24 18:12     ` Nick Desaulniers
  0 siblings, 1 reply; 5+ messages in thread
From: Nathan Lynch @ 2019-04-24 13:45 UTC (permalink / raw)
  To: Arnd Bergmann, Nick Desaulniers
  Cc: Russell King - ARM Linux, Mark Rutland,
	Linux Kernel Mailing List, Dmitry Vyukov, Andrew Morton,
	Linux ARM

Arnd Bergmann <arnd@arndb.de> writes:
> On Mon, Dec 10, 2018 at 11:32 PM <ndesaulniers@google.com> wrote:
>>
>> GNU linker's -z common-page-size's default value is based on the target
>> architecture. arch/arm/vdso/Makefile sets it to the architecture
>> default, which is implicit and redundant. Drop it.
>>
>> Link: https://lkml.kernel.org/r/20181206191231.192355-1-ndesaulniers@google.com
>> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
>> ---
>
> The patch looks good to me,
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> Adding Nathan Lynch to Cc though for further comments, he originally
> added the Makefile flags here and might still remember why he did it.
>
> Unless Nathan objects, please add the patch to Russell's patch
> tracker.

Thanks for cc'ing me -- no objection.

Acked-by: Nathan Lynch <nathanl@linux.ibm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag
  2019-04-24 13:45   ` Nathan Lynch
@ 2019-04-24 18:12     ` Nick Desaulniers
  0 siblings, 0 replies; 5+ messages in thread
From: Nick Desaulniers @ 2019-04-24 18:12 UTC (permalink / raw)
  To: Nathan Lynch, Arnd Bergmann
  Cc: Russell King - ARM Linux, Mark Rutland,
	Linux Kernel Mailing List, Dmitry Vyukov, Andrew Morton,
	Linux ARM

On Wed, Apr 24, 2019 at 6:45 AM Nathan Lynch <nathanl@linux.ibm.com> wrote:
> Arnd Bergmann <arnd@arndb.de> writes:
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Nathan Lynch <nathanl@linux.ibm.com>

https://www.armlinux.org.uk/developer/patches/viewpatch.php?id=8859/1
-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-24 18:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 22:31 [PATCH] ARM: VDSO: Drop implicit common-page-size linker flag ndesaulniers
2019-01-14 21:50 ` Nick Desaulniers
2019-04-24  7:29 ` Arnd Bergmann
2019-04-24 13:45   ` Nathan Lynch
2019-04-24 18:12     ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).