rpms/ltrace/devel ltrace-0.5-ppc32-2.patch, NONE, 1.1 ltrace.spec, 1.51, 1.52

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Aug 30 02:14:21 UTC 2006


Author: pmachata

Update of /cvs/dist/rpms/ltrace/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv25648

Modified Files:
	ltrace.spec 
Added Files:
	ltrace-0.5-ppc32-2.patch 
Log Message:
- first take on ppc32 testsuite problems...


ltrace-0.5-ppc32-2.patch:
 elf.c |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

--- NEW FILE ltrace-0.5-ppc32-2.patch ---
diff -Burp ltrace-0.5-orig/elf.c ltrace-0.5/elf.c
--- ltrace-0.5-orig/elf.c	2006-08-30 02:38:17.000000000 +0200
+++ ltrace-0.5/elf.c	2006-08-30 03:42:30.000000000 +0200
@@ -478,10 +478,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);


Index: ltrace.spec
===================================================================
RCS file: /cvs/dist/rpms/ltrace/devel/ltrace.spec,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- ltrace.spec	28 Aug 2006 10:50:14 -0000	1.51
+++ ltrace.spec	30 Aug 2006 02:14:13 -0000	1.52
@@ -7,6 +7,7 @@
 Patch3: ltrace-ppc32fc5.patch
 Patch4: ltrace-0.5-gnuhash.patch
 Patch5: ltrace-0.5-testsuite.patch
+Patch6: ltrace-0.5-ppc32-2.patch
 License: GPL
 Group: Development/Debuggers
 ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 s390 s390x alpha sparc
@@ -30,6 +31,7 @@
 %patch3 -p0
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 sed -i -e 's/-o root -g root//' Makefile.in
 
 %build
@@ -59,6 +61,7 @@
 %changelog
 * Wed Aug 28 2006 Petr Machata <pmachata at redhat.com> - 0.5-4.45svn
 - enabling testsuite in hunt for testsuite fail on ppc
+- first take on ppc32 testsuite problems...
 
 * Wed Aug 23 2006 Petr Machata <pmachata at redhat.com> - 0.5-3.45svn
 - use "{X}.{release}svn" release string per naming guidelines




More information about the fedora-cvs-commits mailing list