[ltrace-commits] 02/04: Fix cloning of PPC_PLT_NEED_UNRESOLVE breakpoints
Petr Machata
pmachata-guest at moszumanska.debian.org
Tue Dec 9 16:45:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit d80c5371454383e3f9978622e5578cf02af8c44c
Author: Petr Machata <pmachata at redhat.com>
Date: Tue Dec 9 17:38:56 2014 +0100
Fix cloning of PPC_PLT_NEED_UNRESOLVE breakpoints
---
sysdeps/linux-gnu/ppc/plt.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
index cb772ab..dc670ae 100644
--- a/sysdeps/linux-gnu/ppc/plt.c
+++ b/sysdeps/linux-gnu/ppc/plt.c
@@ -1222,6 +1222,14 @@ arch_library_symbol_clone(struct library_symbol *retp,
struct library_symbol *libsym)
{
retp->arch = libsym->arch;
+ if (libsym->arch.type == PPC_PLT_NEED_UNRESOLVE) {
+ assert(libsym->arch.data->self == libsym->arch.data);
+ retp->arch.data = malloc(sizeof *retp->arch.data);
+ if (retp->arch.data == NULL)
+ return -1;
+ *retp->arch.data = *libsym->arch.data;
+ retp->arch.data->self = retp->arch.data;
+ }
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list