Skip to content

Commit 42964c6

Browse files
committed
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar: "A handful of build system (Makefile, linker script) cleanups by Masahiro Yamada" * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/build/vdso: Put generated linker scripts to $(obj)/ x86/build/vdso: Remove unnecessary export in Makefile x86/build/vdso: Remove unused $(vobjs-nox32) in Makefile x86/build: Remove no-op macro VMLINUX_SYMBOL()
2 parents 1b246d2 + 1742ed2 commit 42964c6

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

arch/x86/entry/vdso/Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ obj-y += $(vdso_img_objs)
4444
targets += $(vdso_img_cfiles)
4545
targets += $(vdso_img_sodbg) $(vdso_img-y:%=vdso%.so)
4646

47-
export CPPFLAGS_vdso.lds += -P -C
47+
CPPFLAGS_vdso.lds += -P -C
4848

4949
VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
5050
-Wl,--no-undefined \
5151
-Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 \
5252
$(DISABLE_LTO)
5353

54-
$(obj)/vdso64.so.dbg: $(src)/vdso.lds $(vobjs) FORCE
54+
$(obj)/vdso64.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE
5555
$(call if_changed,vdso)
5656

5757
HOST_EXTRACFLAGS += -I$(srctree)/tools/include -I$(srctree)/include/uapi -I$(srctree)/arch/$(SUBARCH)/include/uapi
@@ -100,11 +100,8 @@ VDSO_LDFLAGS_vdsox32.lds = -Wl,-m,elf32_x86_64 \
100100
-Wl,-z,max-page-size=4096 \
101101
-Wl,-z,common-page-size=4096
102102

103-
# 64-bit objects to re-brand as x32
104-
vobjs64-for-x32 := $(filter-out $(vobjs-nox32),$(vobjs-y))
105-
106103
# x32-rebranded versions
107-
vobjx32s-y := $(vobjs64-for-x32:.o=-x32.o)
104+
vobjx32s-y := $(vobjs-y:.o=-x32.o)
108105

109106
# same thing, but in the output directory
110107
vobjx32s := $(foreach F,$(vobjx32s-y),$(obj)/$F)
@@ -122,7 +119,7 @@ $(obj)/%.so: OBJCOPYFLAGS := -S
122119
$(obj)/%.so: $(obj)/%.so.dbg
123120
$(call if_changed,objcopy)
124121

125-
$(obj)/vdsox32.so.dbg: $(src)/vdsox32.lds $(vobjx32s) FORCE
122+
$(obj)/vdsox32.so.dbg: $(obj)/vdsox32.lds $(vobjx32s) FORCE
126123
$(call if_changed,vdso)
127124

128125
CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds)

arch/x86/kernel/vmlinux.lds.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ SECTIONS
117117

118118
#ifdef CONFIG_X86_64
119119
. = ALIGN(PAGE_SIZE);
120-
VMLINUX_SYMBOL(__entry_trampoline_start) = .;
120+
__entry_trampoline_start = .;
121121
_entry_trampoline = .;
122122
*(.entry_trampoline)
123123
. = ALIGN(PAGE_SIZE);
124-
VMLINUX_SYMBOL(__entry_trampoline_end) = .;
124+
__entry_trampoline_end = .;
125125
ASSERT(. - _entry_trampoline == PAGE_SIZE, "entry trampoline is too big");
126126
#endif
127127

arch/x86/um/vdso/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ $(obj)/vdso.o: $(obj)/vdso.so
2323

2424
targets += vdso.so vdso.so.dbg vdso.lds $(vobjs-y)
2525

26-
export CPPFLAGS_vdso.lds += -P -C
26+
CPPFLAGS_vdso.lds += -P -C
2727

2828
VDSO_LDFLAGS_vdso.lds = -m64 -Wl,-soname=linux-vdso.so.1 \
2929
-Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
3030

3131
$(obj)/vdso.o: $(src)/vdso.S $(obj)/vdso.so
3232

33-
$(obj)/vdso.so.dbg: $(src)/vdso.lds $(vobjs) FORCE
33+
$(obj)/vdso.so.dbg: $(obj)/vdso.lds $(vobjs) FORCE
3434
$(call if_changed,vdso)
3535

3636
$(obj)/%.so: OBJCOPYFLAGS := -S

0 commit comments

Comments
 (0)