RE: : Question about the .reloc section?

Hi,

Thanks, but I can not use the method, because the code is running before the system discovered memory, so it must be run on FLASH and no more memory used to decompress it. I think finding out why padding zeros in .reloc section is meaningful.

BR

Sean


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of GrepAll
Sent: 2006??5??31?? 13:25
To: Windows System Software Devs Interest List
Subject: [ntdev] ???: [ntdev] [ntdev]: Question about the .reloc section?

You can use UPX to compress your dll file, then burn the compressed version to the FLASH.


???: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] ??? Shang, Sean
???ʱ??: 2006??5??31?? 13:17
?ռ???: Windows System Software Devs Interest List
???: RE: [ntdev] [ntdev]: Question about the .reloc section?

Hi,

It is problem for me. Because I very care the size of PE files which would be fired on size limitary FLASH.

BR

Sean

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 2006??5??31?? 12:32
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] [ntdev]: Question about the .reloc section?

From: Doron Holan

Sent: Tuesday, May 30, 2006 9:23 PM

To: ‘Windows System Software Devs Interest List’

Subject: RE: [ntdev] [ntdev]: Question about the .reloc section?

Are you seeing a problem? Or are you just curious about the format?

d


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi,

I don??t think the pads are filled to achieve the section alignment. Previous dump info is just with setting the file alignment and section alignment option(/ALIGN:32) of linker.

BR

Sean


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of GrepAll
Sent: 2006??5??31?? 15:50
To: Windows System Software Devs Interest List
Subject: [ntdev] ???: [ntdev] : Question about the .reloc section?

Hi,

Those zero bytes are filled to the section to guarantee the next section start at a virtual address that is a multiple of SectionAlignment value, which is part of IMAGE_OPTIONAL_HEADER structure of PE file. The default value of SectionAlignment is 0x1000, that is, even one section’s real size is only 1 bytes, 0xfff bytes of zero value will be filled to that section.

According to this, you should try to decrease this value in the compiler setting.

Search in the MSDN using “PE matt” as keywords for some useful information.

Regards,

GrepAll


???: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] ??? Shang, Sean
???ʱ??: 2006??5??31?? 14:32
?ռ???: Windows System Software Devs Interest List
???: RE: [ntdev] : Question about the .reloc section?

Hi,

Thanks, but I can not use the method, because the code is running before the system discovered memory, so it must be run on FLASH and no more memory used to decompress it. I think finding out why padding zeros in .reloc section is meaningful.

BR

Sean


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of GrepAll
Sent: 2006??5??31?? 13:25
To: Windows System Software Devs Interest List
Subject: [ntdev] ???: [ntdev] [ntdev]: Question about the .reloc section?

You can use UPX to compress your dll file, then burn the compressed version to the FLASH.


???: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] ??? Shang, Sean
???ʱ??: 2006??5??31?? 13:17
?ռ???: Windows System Software Devs Interest List
???: RE: [ntdev] [ntdev]: Question about the .reloc section?

Hi,

It is problem for me. Because I very care the size of PE files which would be fired on size limitary FLASH.

BR

Sean

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 2006??5??31?? 12:32
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] [ntdev]: Question about the .reloc section?

From: Doron Holan

Sent: Tuesday, May 30, 2006 9:23 PM

To: ‘Windows System Software Devs Interest List’

Subject: RE: [ntdev] [ntdev]: Question about the .reloc section?

Are you seeing a problem? Or are you just curious about the format?

d


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer