summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch')
-rw-r--r--meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch71
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch b/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch
new file mode 100644
index 0000000000..8512c456a5
--- /dev/null
+++ b/meta/recipes-core/uclibc/uclibc-git/0001-i386-sysdep.h-Remove-STABS_-macros.patch
@@ -0,0 +1,71 @@
1Upstream-Status: Submitted
2
3-Khem
4
5From e20fd2c2427be981c16cb936cc6866d08520de9b Mon Sep 17 00:00:00 2001
6From: Khem Raj <raj.khem@gmail.com>
7Date: Mon, 25 Mar 2013 19:34:39 -0700
8Subject: [PATCH] i386/sysdep.h: Remove STABS_* macros
9
10uclibc is compiled with elf/dwarf and secondly HAVE_CPP_ASM_DEBUGINFO
11is not defined so we generate bogus .stab sections needlessly
12
13Some of post processing tools get confused when they see both
14dwarf and stab sections
15
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 libc/sysdeps/linux/i386/sysdep.h | 27 ---------------------------
19 1 file changed, 27 deletions(-)
20
21diff --git a/libc/sysdeps/linux/i386/sysdep.h b/libc/sysdeps/linux/i386/sysdep.h
22index 983c4f5..7a8d2e2 100644
23--- a/libc/sysdeps/linux/i386/sysdep.h
24+++ b/libc/sysdeps/linux/i386/sysdep.h
25@@ -43,12 +43,9 @@
26 incomplete stabs information. Fake some entries here which specify
27 the current source file. */
28 #define ENTRY(name) \
29- STABS_CURRENT_FILE1("") \
30- STABS_CURRENT_FILE(name) \
31 ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name); \
32 ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function) \
33 .align ALIGNARG(4); \
34- STABS_FUN(name) \
35 C_LABEL(name) \
36 cfi_startproc; \
37 CALL_MCOUNT
38@@ -57,30 +54,6 @@
39 #define END(name) \
40 cfi_endproc; \
41 ASM_SIZE_DIRECTIVE(name) \
42- STABS_FUN_END(name)
43-
44-#ifdef HAVE_CPP_ASM_DEBUGINFO
45-/* Disable that goop, because we just pass -g through to the assembler
46- and it generates proper line number information directly. */
47-# define STABS_CURRENT_FILE1(name)
48-# define STABS_CURRENT_FILE(name)
49-# define STABS_FUN(name)
50-# define STABS_FUN_END(name)
51-#else
52-/* Remove the following two lines once the gdb bug is fixed. */
53-#define STABS_CURRENT_FILE(name) \
54- STABS_CURRENT_FILE1 (#name)
55-#define STABS_CURRENT_FILE1(name) \
56- 1: .stabs name,100,0,0,1b;
57-/* Emit stabs definition lines. We use F(0,1) and define t(0,1) as `int',
58- the same way gcc does it. */
59-#define STABS_FUN(name) STABS_FUN2(name, name##:F(0,1))
60-#define STABS_FUN2(name, namestr) \
61- .stabs "int:t(0,1)=r(0,1);-2147483648;2147483647;",128,0,0,0; \
62- .stabs #namestr,36,0,0,name;
63-#define STABS_FUN_END(name) \
64- 1: .stabs "",36,0,0,1b-name;
65-#endif
66
67 /* If compiled for profiling, call `mcount' at the start of each function. */
68 #ifdef PROF
69--
701.7.9.5
71