powerpc/vdso: Remove VDSO32_LBASE and VDSO64_LBASE
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sun, 27 Sep 2020 09:16:47 +0000 (09:16 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:19 +0000 (01:01 +1100)
VDSO32_LBASE and VDSO64_LBASE are 0. Remove them to simplify code.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/6c4d6570d886bbe1cc471e8ca01602e4b4d9beb5.1601197618.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/vdso.h
arch/powerpc/kernel/vdso32/vdso32.lds.S
arch/powerpc/kernel/vdso64/vdso64.lds.S

index a973849..2448419 100644 (file)
@@ -4,10 +4,6 @@
 
 #ifdef __KERNEL__
 
-/* Default link addresses for the vDSOs */
-#define VDSO32_LBASE   0x0
-#define VDSO64_LBASE   0x0
-
 /* Default map addresses for 32bit vDSO */
 #define VDSO32_MBASE   0x100000
 
index 660891a..8bf958a 100644 (file)
@@ -17,7 +17,7 @@ ENTRY(_start)
 SECTIONS
 {
        PROVIDE(_vdso_datapage = . - PAGE_SIZE);
-       . = VDSO32_LBASE + SIZEOF_HEADERS;
+       . = SIZEOF_HEADERS;
 
        .hash           : { *(.hash) }                  :text
        .gnu.hash       : { *(.gnu.hash) }
index 0cacd51..20f4366 100644 (file)
@@ -17,7 +17,7 @@ ENTRY(_start)
 SECTIONS
 {
        PROVIDE(_vdso_datapage = . - PAGE_SIZE);
-       . = VDSO64_LBASE + SIZEOF_HEADERS;
+       . = SIZEOF_HEADERS;
 
        .hash           : { *(.hash) }                  :text
        .gnu.hash       : { *(.gnu.hash) }