[Buildroot] [PATCH] package/gcc: backport xtensa trap pattern for 5.x
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Nov 14 22:45:52 UTC 2016
Hello,
On Mon, 14 Nov 2016 22:55:53 +0100, Thomas Petazzoni wrote:
> Hello,
>
> On Mon, 14 Nov 2016 02:05:41 -0800, Max Filippov wrote:
> > gcc 5.x uses trap pattern extensively to mark locations where program
> > execution should never get. Default pattern implementation emits a call
> > to 'abort' function. This function however is not always available, e.g.
> > it's not available for the libc dynamic linker. Backport implementation
> > of the trap pattern for xtensa that does not result in a call to
> > 'abort'.
> >
> > Fixes:
> > http://autobuild.buildroot.net/results/0fbcc4475545904bf88f25a3bdf3ee552bf4960e
> > http://autobuild.buildroot.net/results/cb7f5bdfac615d774f3bcd1b802f8d74460bc557
> > http://autobuild.buildroot.net/results/cf3dc9ae4f74ff28b285f1a862b71d96384d7651
> >
> > Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> > ---
> > .../5.4.0/875-xtensa-implement-trap-pattern.patch | 67 ++++++++++++++++++++++
> > 1 file changed, 67 insertions(+)
> > create mode 100644 package/gcc/5.4.0/875-xtensa-implement-trap-pattern.patch
>
> Applied to master, thanks. However, I'm wondering if this backport
> should also be done on gcc versions earlier than 5.x. Could you clarify
> this point?
FYI, I've rebuilt the Xtensa pre-built toolchain and deployed it to
autobuild.b.o for our autobuilders to use.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list