diff options
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch | 31 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch new file mode 100644 index 000000000..13609c13c --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001 | ||
2 | From: Petr Machata <pmachata@redhat.com> | ||
3 | Date: Wed, 2 Jan 2013 16:01:43 +0100 | ||
4 | Subject: [PATCH] In Linux backend, initialize linkmap struct | ||
5 | |||
6 | GCC 4.7.2 -m32 -Os gives the following (spurious) warning: | ||
7 | proc.c: In function 'crawl_linkmap': | ||
8 | proc.c:544:25: error: 'rlm.l_addr' may be used uninitialized in this | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | sysdeps/linux-gnu/proc.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c | ||
17 | index 6e01d28..d69c985 100644 | ||
18 | --- a/sysdeps/linux-gnu/proc.c | ||
19 | +++ b/sysdeps/linux-gnu/proc.c | ||
20 | @@ -484,7 +484,7 @@ crawl_linkmap(struct process *proc, struct lt_r_debug_64 *dbg) | ||
21 | arch_addr_t addr = (arch_addr_t)(uintptr_t)dbg->r_map; | ||
22 | |||
23 | while (addr != 0) { | ||
24 | - struct lt_link_map_64 rlm; | ||
25 | + struct lt_link_map_64 rlm = {}; | ||
26 | if (lm_fetcher(proc)(proc, addr, &rlm) < 0) { | ||
27 | debug(2, "Unable to read link map"); | ||
28 | return; | ||
29 | -- | ||
30 | 2.3.5 | ||
31 | |||
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb index 69848483d..f9f16843b 100644 --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb | |||
@@ -18,6 +18,7 @@ RDEPENDS_${PN} = "elfutils" | |||
18 | SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ | 18 | SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ |
19 | file://ltrace-0.7.2-unused-typedef.patch \ | 19 | file://ltrace-0.7.2-unused-typedef.patch \ |
20 | file://configure-allow-to-disable-selinux-support.patch \ | 20 | file://configure-allow-to-disable-selinux-support.patch \ |
21 | file://0001-In-Linux-backend-initialize-linkmap-struct.patch \ | ||
21 | " | 22 | " |
22 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
23 | 24 | ||