Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2008 00:16:59 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 148879 for review
Message-ID:  <200808310016.m7V0GxN0026738@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=148879

Change 148879 by rpaulo@rpaulo_alpha on 2008/08/31 00:16:54

	Err, cast the sum not the first term.
	While there, intialize stack variables.

Affected files ...

.. //depot/projects/efi/boot/i386/efi/reloc.c#3 edit

Differences ...

==== //depot/projects/efi/boot/i386/efi/reloc.c#3 (text+ko) ====

@@ -46,6 +46,8 @@
 	/*
 	 * Find the relocation address, its size and the relocation entry.
 	 */
+	relsz = 0;
+	relent = 0;
 	for (dynp = dynamic; dynp->d_tag != DT_NULL; dynp++) {
 		switch (dynp->d_tag) {
 		case DT_REL:
@@ -73,7 +75,7 @@
 			break;
 		case R_386_RELATIVE:
 			/* Address relative to the base address. */
-			newaddr   = (unsigned long) ImageBase + rel->r_offset;
+			newaddr = (unsigned long *)(ImageBase + rel->r_offset);
 			*newaddr += ImageBase;
 			break;
 		default:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808310016.m7V0GxN0026738>