* [PATCH 3/5] sh: thin archives fix linking [not found] <20170609052417.561-1-npiggin@gmail.com> @ 2017-06-09 5:24 ` Nicholas Piggin 2017-06-19 6:19 ` Masahiro Yamada 0 siblings, 1 reply; 3+ messages in thread From: Nicholas Piggin @ 2017-06-09 5:24 UTC (permalink / raw) To: linux-kbuild, linux-arch Cc: Nicholas Piggin, Masahiro Yamada, Michal Marek, Linus Torvalds, Stephen Rothwell, Yoshinori Sato, Rich Felker, linux-sh 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: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: linux-sh@vger.kernel.org Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- Arch maintainers please give an ack if we can take this through the kbuild tree. Thanks, Nick arch/sh/Makefile | 2 ++ arch/sh/kernel/vsyscall/Makefile | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sh/Makefile b/arch/sh/Makefile index 280bbff12102..a907366f0352 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile @@ -97,6 +97,8 @@ defaultimage-$(CONFIG_SH_7619_SOLUTION_ENGINE) := vmlinux boot := arch/sh/boot KBUILD_IMAGE := $(boot)/$(defaultimage-y) +LDFLAGS_vmlinux += -R arch/sh/kernel/vsyscall/vsyscall-syms.o + # # Choosing incompatible machines durings configuration will result in # error messages during linking. diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile index 8f0ea5fc835c..b82d13eb8d30 100644 --- a/arch/sh/kernel/vsyscall/Makefile +++ b/arch/sh/kernel/vsyscall/Makefile @@ -27,8 +27,6 @@ $(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE # 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 += vsyscall-syms.o -$(obj)/built-in.o: $(obj)/vsyscall-syms.o -$(obj)/built-in.o: ld_flags += -R $(obj)/vsyscall-syms.o SYSCFLAGS_vsyscall-syms.o = -r $(obj)/vsyscall-syms.o: $(src)/vsyscall.lds \ -- 2.11.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 3/5] sh: thin archives fix linking 2017-06-09 5:24 ` [PATCH 3/5] sh: thin archives fix linking Nicholas Piggin @ 2017-06-19 6:19 ` Masahiro Yamada 2017-06-21 22:09 ` Rob Landley 0 siblings, 1 reply; 3+ messages in thread From: Masahiro Yamada @ 2017-06-19 6:19 UTC (permalink / raw) To: Yoshinori Sato, linux-sh, Rich Felker Cc: Linux Kbuild mailing list, Michal Marek, Linus Torvalds, Stephen Rothwell, Nicholas Piggin, linux-arch 2017-06-09 14:24 GMT+09:00 Nicholas Piggin <npiggin@gmail.com>: > 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: Yoshinori Sato <ysato@users.sourceforge.jp> > Cc: Rich Felker <dalias@libc.org> > Cc: linux-sh@vger.kernel.org > Signed-off-by: Nicholas Piggin <npiggin@gmail.com> > --- SH maintainers, any comments for this patch? I confirmed this patch solved the build error, but I do not have access to any SH hardware. Some Acked-by will be very helpful. -- Best Regards Masahiro Yamada ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 3/5] sh: thin archives fix linking 2017-06-19 6:19 ` Masahiro Yamada @ 2017-06-21 22:09 ` Rob Landley 0 siblings, 0 replies; 3+ messages in thread From: Rob Landley @ 2017-06-21 22:09 UTC (permalink / raw) To: Masahiro Yamada, Yoshinori Sato, linux-sh, Rich Felker Cc: Linux Kbuild mailing list, Michal Marek, Linus Torvalds, Stephen Rothwell, Nicholas Piggin, linux-arch [-- Attachment #1: Type: text/plain, Size: 1166 bytes --] On 06/19/2017 01:19 AM, Masahiro Yamada wrote: > 2017-06-09 14:24 GMT+09:00 Nicholas Piggin <npiggin@gmail.com>: >> 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: Yoshinori Sato <ysato@users.sourceforge.jp> >> Cc: Rich Felker <dalias@libc.org> >> Cc: linux-sh@vger.kernel.org >> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> >> --- > > SH maintainers, any comments for this patch? > > > I confirmed this patch solved the build error, > but I do not have access to any SH hardware. You can build and boot the kernel under qemu for several architectures (including sh4) by following the instructions on: https://github.com/landley/mkroot I believe I last built -rc6? You may need the attached patch to fix the serial port issue from: https://www.spinics.net/lists/linux-serial/msg26085.html Which is still there because the kernel guys don't care that they broke qemu, and the qemu guys are still using old kernel versions that work fine. My patch just reverts the kernel change (which enabled hardware buffer logic qemu doesn't implement). Rob [-- Attachment #2: qemu-sh4.patch --] [-- Type: text/x-diff, Size: 479 bytes --] diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 71707e8..a798def 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2193,7 +2193,7 @@ static void sci_reset(struct uart_port *port) setup_timer(&s->rx_fifo_timer, rx_fifo_timer_fn, (unsigned long)s); } else { - if (port->type == PORT_SCIFA || + if (1 || port->type == PORT_SCIFA || port->type == PORT_SCIFB) scif_set_rtrg(port, 1); else ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-21 22:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20170609052417.561-1-npiggin@gmail.com> 2017-06-09 5:24 ` [PATCH 3/5] sh: thin archives fix linking Nicholas Piggin 2017-06-19 6:19 ` Masahiro Yamada 2017-06-21 22:09 ` Rob Landley
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).