dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/image pecoff_writer.c,1.7,1.8


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/image pecoff_writer.c,1.7,1.8
Date: Mon, 25 Nov 2002 21:34:19 -0500

Update of /cvsroot/dotgnu-pnet/pnet/image
In directory subversions:/tmp/cvs-serv9196/image

Modified Files:
        pecoff_writer.c 
Log Message:


Output the correct relocation offset in the ".reloc" section for the
benefit of Windows systems.


Index: pecoff_writer.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/image/pecoff_writer.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** pecoff_writer.c     11 Aug 2002 12:10:36 -0000      1.7
--- pecoff_writer.c     26 Nov 2002 02:34:17 -0000      1.8
***************
*** 409,413 ****
                IL_WRITE_UINT32(opthdr + 80, 1048576);          /* Heap reserve 
size */
                IL_WRITE_UINT32(opthdr + 84, 4096);                     /* Heap 
commit size */
!               IL_WRITE_UINT32(opthdr + 88, 1);                        /* 
Loader flags */
                IL_WRITE_UINT32(opthdr + 92, 16);                       /* 
Number of data dirs */
  
--- 409,413 ----
                IL_WRITE_UINT32(opthdr + 80, 1048576);          /* Heap reserve 
size */
                IL_WRITE_UINT32(opthdr + 84, 4096);                     /* Heap 
commit size */
!               IL_WRITE_UINT32(opthdr + 88, 0);                        /* 
Loader flags */
                IL_WRITE_UINT32(opthdr + 92, 16);                       /* 
Number of data dirs */
  
***************
*** 656,659 ****
--- 656,660 ----
  
                /* Create the ".reloc" section to relocate the entry point */
+               entryPoint += 2;        /* Relocate the operand, not the 
instruction */
                offset = entryPoint & ~((unsigned long)4095);
                entry[0] = (unsigned char)offset;                       /* Page 
for relocation */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]