* [PATCH 0/2] fix ia64 and tile for thin archives
@ 2017-06-21 7:56 Nicholas Piggin
2017-06-21 7:56 ` Nicholas Piggin
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Nicholas Piggin @ 2017-06-21 7:56 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: Nicholas Piggin, linux-kbuild
These fixes are similar to the sh fix already in the kbuild/thin-ar
tree.
Thanks,
Nick
Nicholas Piggin (2):
ia64: thin archives fix linking
tile: thin archives fix linking
arch/ia64/Makefile | 1 +
arch/ia64/kernel/Makefile.gate | 3 ---
arch/tile/Makefile | 2 ++
arch/tile/kernel/vdso/Makefile | 2 --
4 files changed, 3 insertions(+), 5 deletions(-)
--
2.11.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] ia64: thin archives fix linking
2017-06-21 7:56 [PATCH 0/2] fix ia64 and tile for thin archives Nicholas Piggin
@ 2017-06-21 7:56 ` Nicholas Piggin
2017-06-21 7:56 ` [PATCH 2/2] tile: " Nicholas Piggin
2017-06-21 23:33 ` [PATCH 0/2] fix ia64 and tile for thin archives Masahiro Yamada
2 siblings, 0 replies; 5+ messages in thread
From: Nicholas Piggin @ 2017-06-21 7:56 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Nicholas Piggin, linux-kbuild, Tony Luck, Fenghua Yu, linux-ia64
The VDSO symbols can't be linked into built-in.o when building with
thin archives, so change this to linking them into the final link.
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
arch/ia64/Makefile | 1 +
arch/ia64/kernel/Makefile.gate | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile
index c100d780f1eb..302f7edbcfd1 100644
--- a/arch/ia64/Makefile
+++ b/arch/ia64/Makefile
@@ -22,6 +22,7 @@ CHECKFLAGS += -m64 -D__ia64=1 -D__ia64__=1 -D_LP64 -D__LP64__
OBJCOPYFLAGS := --strip-all
LDFLAGS_vmlinux := -static
+LDFLAGS_vmlinux += -R arch/ia64/kernel/gate-syms.o
KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/ia64/module.lds
KBUILD_AFLAGS_KERNEL := -mconstant-gp
EXTRA :diff --git a/arch/ia64/kernel/Makefile.gate b/arch/ia64/kernel/Makefile.gate
index a32903ada016..9d9c69100d35 100644
--- a/arch/ia64/kernel/Makefile.gate
+++ b/arch/ia64/kernel/Makefile.gate
@@ -14,9 +14,6 @@ GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
$(call if_changed,gate)
-$(obj)/built-in.o: $(obj)/gate-syms.o
-$(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
-
GATECFLAGS_gate-syms.o = -r
$(obj)/gate-syms.o: $(obj)/gate.lds $(obj)/gate.o FORCE
$(call if_changed,gate)
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 1/2] ia64: thin archives fix linking
@ 2017-06-21 7:56 ` Nicholas Piggin
0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Piggin @ 2017-06-21 7:56 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Nicholas Piggin, linux-kbuild, Tony Luck, Fenghua Yu, linux-ia64
The VDSO symbols can't be linked into built-in.o when building with
thin archives, so change this to linking them into the final link.
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
arch/ia64/Makefile | 1 +
arch/ia64/kernel/Makefile.gate | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile
index c100d780f1eb..302f7edbcfd1 100644
--- a/arch/ia64/Makefile
+++ b/arch/ia64/Makefile
@@ -22,6 +22,7 @@ CHECKFLAGS += -m64 -D__ia64=1 -D__ia64__=1 -D_LP64 -D__LP64__
OBJCOPYFLAGS := --strip-all
LDFLAGS_vmlinux := -static
+LDFLAGS_vmlinux += -R arch/ia64/kernel/gate-syms.o
KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/ia64/module.lds
KBUILD_AFLAGS_KERNEL := -mconstant-gp
EXTRA :=
diff --git a/arch/ia64/kernel/Makefile.gate b/arch/ia64/kernel/Makefile.gate
index a32903ada016..9d9c69100d35 100644
--- a/arch/ia64/kernel/Makefile.gate
+++ b/arch/ia64/kernel/Makefile.gate
@@ -14,9 +14,6 @@ GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1 \
$(obj)/gate.so: $(obj)/gate.lds $(obj)/gate.o FORCE
$(call if_changed,gate)
-$(obj)/built-in.o: $(obj)/gate-syms.o
-$(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
-
GATECFLAGS_gate-syms.o = -r
$(obj)/gate-syms.o: $(obj)/gate.lds $(obj)/gate.o FORCE
$(call if_changed,gate)
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] tile: thin archives fix linking
2017-06-21 7:56 [PATCH 0/2] fix ia64 and tile for thin archives Nicholas Piggin
2017-06-21 7:56 ` Nicholas Piggin
@ 2017-06-21 7:56 ` Nicholas Piggin
2017-06-21 23:33 ` [PATCH 0/2] fix ia64 and tile for thin archives Masahiro Yamada
2 siblings, 0 replies; 5+ messages in thread
From: Nicholas Piggin @ 2017-06-21 7:56 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: Nicholas Piggin, linux-kbuild, Chris Metcalf
The VDSO symbols can't be linked into built-in.o when building with
thin archives, so change this to linking them into the final link.
Cc: Chris Metcalf <cmetcalf@mellanox.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
arch/tile/Makefile | 2 ++
arch/tile/kernel/vdso/Makefile | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/tile/Makefile b/arch/tile/Makefile
index 4dc380a519d4..eb43ffb999b6 100644
--- a/arch/tile/Makefile
+++ b/arch/tile/Makefile
@@ -30,6 +30,8 @@ endif
# In kernel modules, this causes load failures due to unsupported relocations.
KBUILD_CFLAGS += -fno-asynchronous-unwind-tables
+LDFLAGS_vmlinux += -R arch/tile/kernel/vdso/vdso-syms.o
+
LIBGCC_PATH := \
$(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name)
diff --git a/arch/tile/kernel/vdso/Makefile b/arch/tile/kernel/vdso/Makefile
index c54fff37b5ff..84daaf2c5e2c 100644
--- a/arch/tile/kernel/vdso/Makefile
+++ b/arch/tile/kernel/vdso/Makefile
@@ -50,8 +50,6 @@ $(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso)
# table and layout of the linked DSO. With ld -R we can then refer to
# these symbols in the kernel code rather than hand-coded addresses.
extra-y += vdso-syms.o
-$(obj)/built-in.o: $(obj)/vdso-syms.o
-$(obj)/built-in.o: ld_flags += -R $(obj)/vdso-syms.o
SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \
$(call cc-ldoption, -Wl$(comma)--hash-style=both)
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 0/2] fix ia64 and tile for thin archives
2017-06-21 7:56 [PATCH 0/2] fix ia64 and tile for thin archives Nicholas Piggin
2017-06-21 7:56 ` Nicholas Piggin
2017-06-21 7:56 ` [PATCH 2/2] tile: " Nicholas Piggin
@ 2017-06-21 23:33 ` Masahiro Yamada
2 siblings, 0 replies; 5+ messages in thread
From: Masahiro Yamada @ 2017-06-21 23:33 UTC (permalink / raw)
To: Nicholas Piggin; +Cc: Linux Kbuild mailing list
Hi Nicholas,
2017-06-21 16:56 GMT+09:00 Nicholas Piggin <npiggin@gmail.com>:
> These fixes are similar to the sh fix already in the kbuild/thin-ar
> tree.
>
> Thanks,
> Nick
>
> Nicholas Piggin (2):
> ia64: thin archives fix linking
> tile: thin archives fix linking
I inserted these two after "sh: thin archives fix linking".
Thanks!
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-21 23:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-21 7:56 [PATCH 0/2] fix ia64 and tile for thin archives Nicholas Piggin
2017-06-21 7:56 ` [PATCH 1/2] ia64: thin archives fix linking Nicholas Piggin
2017-06-21 7:56 ` Nicholas Piggin
2017-06-21 7:56 ` [PATCH 2/2] tile: " Nicholas Piggin
2017-06-21 23:33 ` [PATCH 0/2] fix ia64 and tile for thin archives Masahiro Yamada
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.