![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package ltrace checked in at Thu Jan 25 18:26:03 CET 2007. -------- --- ltrace/ltrace.changes 2006-11-20 15:05:39.000000000 +0100 +++ /mounts/work_src_done/STABLE/ltrace/ltrace.changes 2007-01-25 12:02:23.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Jan 25 12:01:52 CET 2007 - olh@suse.de + +- fix ltrace -c on ppc32 (201272 - LTC24809) + +------------------------------------------------------------------- New: ---- ltrace.ppc32-c-option.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ltrace.spec ++++++ --- /var/tmp/diff_new_pack.XO3142/_old 2007-01-25 18:25:52.000000000 +0100 +++ /var/tmp/diff_new_pack.XO3142/_new 2007-01-25 18:25:52.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package ltrace (Version 0.4) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -19,7 +19,7 @@ Autoreqprov: on Summary: Trace the Library and System Calls a Program Makes Version: 0.4 -Release: 25 +Release: 32 BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 sparc s390 s390x ppc ppc64 armv4l x86_64 alpha ia64 Prefix: /usr @@ -67,6 +67,7 @@ Patch200: ltrace.ltrace.conf.patch Patch202: ltrace.ltrace-opd.patch Patch203: ltrace.trace_exec.patch +Patch204: ltrace.ppc32-c-option.patch %description Ltrace is a program that runs the specified command until it exits. It @@ -131,6 +132,7 @@ %patch200 -p1 %patch202 -p1 %patch203 -p1 +%patch204 -p1 %build autoreconf -fi @@ -172,6 +174,8 @@ %config /etc/ltrace.conf %changelog -n ltrace +* Thu Jan 25 2007 - olh@suse.de +- fix ltrace -c on ppc32 (201272 - LTC24809) * Mon Nov 20 2006 - olh@suse.de - add ltrace.trace_exec.patch (201282 - LTC25640) * Thu Oct 12 2006 - olh@suse.de ++++++ ltrace.ppc32-c-option.patch ++++++ bug 201272 - LTC24809 without the patch: olaf@papaya:~> ltrace -c ./test32 % time seconds usecs/call calls function ------ ----------- ----------- --------- -------------------- 100.00 0.000058 58 1 __gmon_start__ ------ ----------- ----------- --------- -------------------- 100.00 0.000058 1 total olaf@papaya:~> ltrace64 -c ./test64 % time seconds usecs/call calls function ------ ----------- ----------- --------- -------------------- 100.00 0.000067 67 1 getcwd ------ ----------- ----------- --------- -------------------- 100.00 0.000067 1 total with the patch: olaf@papaya:~> ltrace -c ./test32 % time seconds usecs/call calls function ------ ----------- ----------- --------- -------------------- 100.00 0.000062 62 1 getcwd ------ ----------- ----------- --------- -------------------- 100.00 0.000062 1 total olaf@papaya:~> ltrace64 -c ./test64 % time seconds usecs/call calls function ------ ----------- ----------- --------- -------------------- 100.00 0.000065 65 1 getcwd ------ ----------- ----------- --------- -------------------- 100.00 0.000065 1 total --- elf.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) Index: ltrace-0.4/elf.c =================================================================== --- ltrace-0.4.orig/elf.c +++ ltrace-0.4/elf.c @@ -474,10 +474,17 @@ struct library_symbol *read_elf(struct p name = lte->dynstr + sym.st_name; if (in_load_libraries(name, lte)) { - addr = arch_plt_sym_val(lte, i, &rela); - add_library_symbol(addr, name, &library_symbols, - (PLTS_ARE_EXECUTABLE(lte) - ? LS_TOPLT_EXEC : LS_TOPLT_POINT), + enum toplt pltt; + if (lte->ehdr.e_machine == EM_PPC) { + addr = sym.st_value; + pltt = LS_TOPLT_EXEC; + } + else { + addr = arch_plt_sym_val(lte, i, &rela); + pltt = (PLTS_ARE_EXECUTABLE(lte) + ? LS_TOPLT_EXEC : LS_TOPLT_POINT); + } + add_library_symbol(addr, name, &library_symbols, pltt, ELF64_ST_BIND(sym.st_info) == STB_WEAK); if (!lib_tail) lib_tail = &(library_symbols->next); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de