xref: /OK3568_Linux_fs/buildroot/package/ltrace/0002-sparc-add-missing-library.h-include.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 4e58f53b7886420d002e5919f279acd6d7c4afd1 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3*4882a593SmuzhiyunDate: Tue, 22 Dec 2015 21:47:45 +0100
4*4882a593SmuzhiyunSubject: [PATCH] sparc: add missing library.h include
5*4882a593SmuzhiyunMIME-Version: 1.0
6*4882a593SmuzhiyunContent-Type: text/plain; charset=UTF-8
7*4882a593SmuzhiyunContent-Transfer-Encoding: 8bit
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunFixes the following build failure on sparc:
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunplt.c: In function ‘sym2addr’:
12*4882a593Smuzhiyunplt.c:33:12: error: dereferencing pointer to incomplete type
13*4882a593Smuzhiyun  return sym->enter_addr;
14*4882a593Smuzhiyun            ^
15*4882a593Smuzhiyunplt.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18*4882a593Smuzhiyun---
19*4882a593Smuzhiyun sysdeps/linux-gnu/sparc/plt.c | 1 +
20*4882a593Smuzhiyun 1 file changed, 1 insertion(+)
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundiff --git a/sysdeps/linux-gnu/sparc/plt.c b/sysdeps/linux-gnu/sparc/plt.c
23*4882a593Smuzhiyunindex 3d2e589..959eed1 100644
24*4882a593Smuzhiyun--- a/sysdeps/linux-gnu/sparc/plt.c
25*4882a593Smuzhiyun+++ b/sysdeps/linux-gnu/sparc/plt.c
26*4882a593Smuzhiyun@@ -21,6 +21,7 @@
27*4882a593Smuzhiyun #include <gelf.h>
28*4882a593Smuzhiyun #include "proc.h"
29*4882a593Smuzhiyun #include "common.h"
30*4882a593Smuzhiyun+#include "library.h"
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun GElf_Addr
33*4882a593Smuzhiyun arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
34*4882a593Smuzhiyun--
35*4882a593Smuzhiyun2.6.4
36*4882a593Smuzhiyun
37