PERFORCE change 148879 for review
Rui Paulo
rpaulo at FreeBSD.org
Sun Aug 31 00:17:00 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=148879
Change 148879 by rpaulo at 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:
More information about the p4-projects
mailing list