Hello community, here is the log from the commit of package skiboot for openSUSE:Factory checked in at 2016-06-25 02:20:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/skiboot (Old) and /work/SRC/openSUSE:Factory/.skiboot.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "skiboot" Changes: -------- --- /work/SRC/openSUSE:Factory/skiboot/skiboot.changes 2016-04-01 13:02:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.skiboot.new/skiboot.changes 2016-06-25 02:21:43.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Jun 17 11:04:23 UTC 2016 - [email protected] + +- new skiboot_gcc6_backtrace.patch + +------------------------------------------------------------------- New: ---- skiboot_gcc6_backtrace.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ skiboot.spec ++++++ --- /var/tmp/diff_new_pack.avxcDP/_old 2016-06-25 02:21:43.000000000 +0200 +++ /var/tmp/diff_new_pack.avxcDP/_new 2016-06-25 02:21:43.000000000 +0200 @@ -25,6 +25,7 @@ Url: https://github.com/open-power/skiboot Source: https://github.com/open-power/skiboot/archive/%{name}-%{version}.tar.gz Patch0: 0001-Make-links-target-reusable.patch +Patch1: skiboot_gcc6_backtrace.patch BuildRequires: linux-glibc-devel BuildRequires: systemd-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -68,6 +69,7 @@ %prep %setup -q -n %{name}-%{name}-%{version} %patch0 -p1 +%patch1 -p1 %build SKIBOOT_VERSION=%version CROSS= make V=1 %{?_smp_mflags} ++++++ skiboot_gcc6_backtrace.patch ++++++ >From 793f6f5b32c96f2774bd955b6062c74a672317ca Mon Sep 17 00:00:00 2001 From: Joel Stanley <[email protected]> Date: Mon, 29 Feb 2016 11:21:11 +1030 Subject: [PATCH] core: Fix backtrace for gcc 6 GCC 6 warns when we look at any stack frame other than our own, ie any argument to __builtin_frame_address other than zero. Signed-off-by: Joel Stanley <[email protected]> Signed-off-by: Stewart Smith <[email protected]> diff --git a/core/stack.c b/core/stack.c index 5fba6c7..3b92a14 100644 --- a/core/stack.c +++ b/core/stack.c @@ -31,7 +31,7 @@ extern uint32_t _stext, _etext; void __nomcount __backtrace(struct bt_entry *entries, unsigned int *count) { unsigned int room = *count; - unsigned long *fp = __builtin_frame_address(1); + unsigned long *fp = __builtin_frame_address(0); unsigned long top_adj = top_of_ram; /* Assume one stack for early backtraces */ @@ -40,6 +40,7 @@ void __nomcount __backtrace(struct bt_entry *entries, unsigned int *count) *count = 0; while(room) { + fp = (unsigned long *)fp[0]; if (!fp || (unsigned long)fp > top_adj) break; entries->sp = (unsigned long)fp; @@ -47,7 +48,6 @@ void __nomcount __backtrace(struct bt_entry *entries, unsigned int *count) entries++; *count = (*count) + 1; room--; - fp = (unsigned long *)fp[0]; } }
