This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Make sure that the PTRACE_... symbols are available for ppc/plt.c


# HG changeset patch
# User Anthony Foiani <anthony.foiani@gmail.com>
# Date 1285770677 21600
# Node ID d5d004cc0d9f7577a7f31763ac619b8ac0dffdf5
# Parent  10f0f77c04eba49613f054dab9527ca0dfa3bad5
Make sure that the PTRACE_... symbols are available for ppc/plt.c.

On a Fedora 12 x86_64 build/host box, this file was complaining about
PTRACE_PEEKTEXT being undefined.  Adding in the "ptrace.h" include
fixed it.

Signed-off-by: Anthony Foiani <anthony.foiani@gmail.com>

diff -r 10f0f77c04eb -r d5d004cc0d9f patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch
--- a/patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch	Wed Sep 29 08:29:36 2010 -0600
+++ b/patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch	Wed Sep 29 08:31:17 2010 -0600
@@ -70,3 +70,12 @@
 +
 +#endif /* PTRACE_EVENT_FORK */
 +#endif /* __SYSDEPS_TRACE_H__ */
+--- ltrace-0.5.3.orig/sysdeps/linux-gnu/ppc/plt.c	2009-07-25 09:13:02.000000000 -0600
++++ ltrace-0.5.3/sysdeps/linux-gnu/ppc/plt.c	2010-09-28 18:30:07.091618190 -0600
+@@ -1,5 +1,6 @@
+ #include <gelf.h>
+ #include "common.h"
++#include "ptrace.h"
+ 
+ GElf_Addr
+ arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) {

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]