0002-sparc-add-missing-library.h-include.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 4e58f53b7886420d002e5919f279acd6d7c4afd1 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Tue, 22 Dec 2015 21:47:45 +0100
  4. Subject: [PATCH] sparc: add missing library.h include
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes the following build failure on sparc:
  9. plt.c: In function ‘sym2addr’:
  10. plt.c:33:12: error: dereferencing pointer to incomplete type
  11. return sym->enter_addr;
  12. ^
  13. plt.c:34:1: warning: control reaches end of non-void function [-Wreturn-type]
  14. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  15. ---
  16. sysdeps/linux-gnu/sparc/plt.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/sysdeps/linux-gnu/sparc/plt.c b/sysdeps/linux-gnu/sparc/plt.c
  19. index 3d2e589..959eed1 100644
  20. --- a/sysdeps/linux-gnu/sparc/plt.c
  21. +++ b/sysdeps/linux-gnu/sparc/plt.c
  22. @@ -21,6 +21,7 @@
  23. #include <gelf.h>
  24. #include "proc.h"
  25. #include "common.h"
  26. +#include "library.h"
  27. GElf_Addr
  28. arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {
  29. --
  30. 2.6.4