1.1 --- a/patches/glibc/2_9/290-no-inline-gmon.patch Sat Apr 11 19:03:02 2009 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,38 +0,0 @@
1.4 -Original patch from: gentoo/src/patchsets/glibc/2.9/1080_all_glibc-no-inline-gmon.patch
1.5 -
1.6 --= BEGIN original header =-
1.7 -http://bugs.gentoo.org/196245
1.8 -http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html
1.9 -
1.10 -Attached is a patch to add __attribute__ ((noinline)) to
1.11 -call_gmon_start.
1.12 -
1.13 -Without this patch, the sec script that processed initfini.s removes a
1.14 -part of inlined call_gmon_start, causing undefined label errors.
1.15 -
1.16 -This patch solves the problem by forcing gcc not to inline
1.17 -call_gmon_start with __attribute__ ((noinline)).
1.18 -
1.19 -Tested by building for arm-none-lixux-gnueabi. OK to apply?
1.20 -
1.21 -Kazu Hirata
1.22 -
1.23 -2006-05-07 Kazu Hirata <kazu@codesourcery.com>
1.24 -
1.25 - * sysdeps/generic/initfini.c (call_gmon_start): Add
1.26 - __attribute__ ((noinline)).
1.27 -
1.28 --= END original header =-
1.29 -
1.30 -diff -durN glibc-2_9.orig/sysdeps/generic/initfini.c glibc-2_9/sysdeps/generic/initfini.c
1.31 ---- glibc-2_9.orig/sysdeps/generic/initfini.c 2007-06-17 20:02:40.000000000 +0200
1.32 -+++ glibc-2_9/sysdeps/generic/initfini.c 2009-02-02 22:01:01.000000000 +0100
1.33 -@@ -70,7 +70,7 @@
1.34 - /* The beginning of _init: */
1.35 - asm ("\n/*@_init_PROLOG_BEGINS*/");
1.36 -
1.37 --static void
1.38 -+static void __attribute__ ((noinline))
1.39 - call_gmon_start(void)
1.40 - {
1.41 - extern void __gmon_start__ (void) __attribute__ ((weak)); /*weak_extern (__gmon_start__);*/