patches/eglibc/2_16/002-Add-ARM-specific-static-stubs.c.patch
author Florian Fainelli <f.fainelli@gmail.com>
Wed Sep 19 10:43:04 2012 +0200 (2012-09-19)
changeset 3052 06b663f297ad
permissions -rw-r--r--
libc/eglibc: backport OpenEmbedded patches for eglibc 2.16

With this 3 patches, I was able to build and run an eglibc-based system
on MIPS(el) and ARM targets.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
f@3052
     1
Upstream-Status: Backport
f@3052
     2
f@3052
     3
Signed-off-by: Khem Raj <raj.khem@gmail.com>
f@3052
     4
f@3052
     5
From c57a67e03368687fc0d2ae8354cd1b347a61ea44 Mon Sep 17 00:00:00 2001
f@3052
     6
From: Joseph Myers <joseph@codesourcery.com>
f@3052
     7
Date: Thu, 5 Jul 2012 22:16:03 +0000
f@3052
     8
Subject: [PATCH] Add ARM-specific static-stubs.c.
f@3052
     9
f@3052
    10
---
f@3052
    11
 ports/ChangeLog.arm              |    4 ++++
f@3052
    12
 ports/sysdeps/arm/static-stubs.c |    7 +++++++
f@3052
    13
 2 files changed, 11 insertions(+)
f@3052
    14
 create mode 100644 ports/sysdeps/arm/static-stubs.c
f@3052
    15
f@3052
    16
Index: a/ports/sysdeps/arm/static-stubs.c
f@3052
    17
===================================================================
f@3052
    18
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
f@3052
    19
+++ b/ports/sysdeps/arm/static-stubs.c	2012-08-15 15:04:59.687669241 -0700
f@3052
    20
@@ -0,0 +1,7 @@
f@3052
    21
+/* When building with GCC with static-only libgcc, the dummy
f@3052
    22
+   _Unwind_Resume from static-stubs.c needs to be used together with
f@3052
    23
+   the dummy __aeabi_unwind_cpp_pr* from aeabi_unwind_cpp_pr1.c
f@3052
    24
+   instead of the copies from libgcc.  */
f@3052
    25
+
f@3052
    26
+#include <elf/static-stubs.c>
f@3052
    27
+#include <aeabi_unwind_cpp_pr1.c>