Skip to contentSkip to conversation

ARM: VDSO: Drop implicit common-page-size linker flag

PATCH In review [email protected] 3 participants 5 messages Dec 10, 2018 – Apr 24, 2019 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: VDSO: Drop implicit common-page-size linker flag

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.

---
 arch/arm/vdso/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/vdso/Makefile +1 -1
index f4efff9d3afb..8f2fac5acbc8 100644
@@ -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)
Signature · 1 line
2.20.0.rc2.403.gdbc3b29805-goog
#1 lore raw
Quoted 25 lines · On Mon, Dec 10, 2018 at 2:32 PM <[email protected]> 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.

---
 arch/arm/vdso/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/vdso/Makefile +1 -2
index f4efff9d3afb..8f2fac5acbc8 100644
@@ -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)
--
Quoted 2 lines

2.20.0.rc2.403.gdbc3b29805-goog

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

Signature · 2 lines
Thanks,
~Nick Desaulniers
Acked-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Mon, Dec 10, 2018 at 11:32 PM <[email protected]> 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.

---

The patch looks good to me,

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.

Quoted 21 lines
arch/arm/vdso/Makefile +1 -2
index f4efff9d3afb..8f2fac5acbc8 100644
@@ -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
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Acked-by
#3 lore raw
Quoted 12 lines · Arnd Bergmann
Quoted 8 lines · On Mon, Dec 10, 2018 at 11:32 PM <[email protected]> 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.

---

The patch looks good to me,

Quoted 7 lines

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.