Skip to content

Commit 0973fed

Browse files
t-8chKAGA-KOKO
authored andcommitted
arm64: vdso: Drop LBASE_VDSO
This constant is always "0", providing no value and making the logic harder to understand. Also prepare for a consolidation of the vdso linkerscript logic by aligning it with other architectures. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 98333a8 commit 0973fed

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

arch/arm64/include/asm/vdso.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
#ifndef __ASM_VDSO_H
66
#define __ASM_VDSO_H
77

8-
/*
9-
* Default link address for the vDSO.
10-
* Since we randomise the VDSO mapping, there's little point in trying
11-
* to prelink this.
12-
*/
13-
#define VDSO_LBASE 0x0
14-
158
#define __VVAR_PAGES 2
169

1710
#ifndef __ASSEMBLY__
@@ -20,7 +13,7 @@
2013

2114
#define VDSO_SYMBOL(base, name) \
2215
({ \
23-
(void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
16+
(void *)(vdso_offset_##name + (unsigned long)(base)); \
2417
})
2518

2619
extern char vdso_start[], vdso_end[];

arch/arm64/kernel/vdso/vdso.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SECTIONS
2525
#ifdef CONFIG_TIME_NS
2626
PROVIDE(_timens_data = _vdso_data + PAGE_SIZE);
2727
#endif
28-
. = VDSO_LBASE + SIZEOF_HEADERS;
28+
. = SIZEOF_HEADERS;
2929

3030
.hash : { *(.hash) } :text
3131
.gnu.hash : { *(.gnu.hash) }

arch/arm64/kernel/vdso32/vdso.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SECTIONS
2222
#ifdef CONFIG_TIME_NS
2323
PROVIDE_HIDDEN(_timens_data = _vdso_data + PAGE_SIZE);
2424
#endif
25-
. = VDSO_LBASE + SIZEOF_HEADERS;
25+
. = SIZEOF_HEADERS;
2626

2727
.hash : { *(.hash) } :text
2828
.gnu.hash : { *(.gnu.hash) }

0 commit comments

Comments
 (0)