Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DLL preferred load address Pin
Simon P Stevens22-Oct-08 3:48
Simon P Stevens22-Oct-08 3:48 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 15:20
George_George22-Oct-08 15:20 
GeneralRe: DLL preferred load address Pin
Naveen22-Oct-08 15:40
Naveen22-Oct-08 15:40 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 16:05
George_George22-Oct-08 16:05 
GeneralRe: DLL preferred load address Pin
Naveen22-Oct-08 16:19
Naveen22-Oct-08 16:19 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 17:37
George_George22-Oct-08 17:37 
AnswerRe: DLL preferred load address Pin
Iain Clarke, Warrior Programmer22-Oct-08 3:50
Iain Clarke, Warrior Programmer22-Oct-08 3:50 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 15:30
George_George22-Oct-08 15:30 
Hi Iain,


Here is my output, which item do you think is the preferred load address? Smile | :)

Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file TestDll2.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
            8664 machine (x64)
               7 number of sections
        48FF2B43 time date stamp Wed Oct 22 21:31:47 2008
               0 file pointer to symbol table
               0 number of symbols
              F0 size of optional header
            2022 characteristics
                   Executable
                   Application can handle large (>2GB) addresses
                   DLL

OPTIONAL HEADER VALUES
             20B magic # (PE32+)
            9.00 linker version
            4800 size of code
            3600 size of initialized data
               0 size of uninitialized data
            1520 entry point (0000000180001520) _DllMainCRTStartup
            1000 base of code
       180000000 image base (0000000180000000 to 000000018000CFFF)
            1000 section alignment
             200 file alignment
            5.02 operating system version
            0.00 image version
            5.02 subsystem version
               0 Win32 version
            D000 size of image
             400 size of headers
            F212 checksum
               2 subsystem (Windows GUI)
             140 DLL characteristics
                   Dynamic base
                   NX compatible
          100000 size of stack reserve
            1000 size of stack commit
          100000 size of heap reserve
            1000 size of heap commit
               0 loader flags
              10 number of directories
            7DB0 [     16A] RVA [size] of Export Directory
            A000 [      3C] RVA [size] of Import Directory
            B000 [     2B8] RVA [size] of Resource Directory
            9000 [     288] RVA [size] of Exception Directory
               0 [       0] RVA [size] of Certificates Directory
            C000 [      3C] RVA [size] of Base Relocation Directory
            6550 [      1C] RVA [size] of Debug Directory
               0 [       0] RVA [size] of Architecture Directory
               0 [       0] RVA [size] of Global Pointer Directory
               0 [       0] RVA [size] of Thread Storage Directory
               0 [       0] RVA [size] of Load Configuration Directory
               0 [       0] RVA [size] of Bound Import Directory
            A2A0 [     260] RVA [size] of Import Address Table Directory
               0 [       0] RVA [size] of Delay Import Directory
               0 [       0] RVA [size] of COM Descriptor Directory
               0 [       0] RVA [size] of Reserved Directory


SECTION HEADER #1
   .text name
    4687 virtual size
    1000 virtual address (0000000180001000 to 0000000180005686)
    4800 size of raw data
     400 file pointer to raw data (00000400 to 00004BFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
60000020 flags
         Code
         Execute Read

SECTION HEADER #2
  .rdata name
    1F1A virtual size
    6000 virtual address (0000000180006000 to 0000000180007F19)
    2000 size of raw data
    4C00 file pointer to raw data (00004C00 to 00006BFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
40000040 flags
         Initialized Data
         Read Only

  Debug Directories

        Time Type       Size      RVA  Pointer
    -------- ------ -------- -------- --------
    48FF2B43 cv           57 0000702C     5C2C    Format: RSDS, {FC74C901-7889-4E77-8E4F-C81674668F9A}, 1, d:\Visual Studio 2008\Projects\TestDll2\x64\Debug\TestDll2.pdb

SECTION HEADER #3
   .data name
     759 virtual size
    8000 virtual address (0000000180008000 to 0000000180008758)
     200 size of raw data
    6C00 file pointer to raw data (00006C00 to 00006DFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0000040 flags
         Initialized Data
         Read Write

SECTION HEADER #4
  .pdata name
     3F0 virtual size
    9000 virtual address (0000000180009000 to 00000001800093EF)
     400 size of raw data
    6E00 file pointer to raw data (00006E00 to 000071FF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
40000040 flags
         Initialized Data
         Read Only

SECTION HEADER #5
  .idata name
     9C1 virtual size
    A000 virtual address (000000018000A000 to 000000018000A9C0)
     A00 size of raw data
    7200 file pointer to raw data (00007200 to 00007BFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0000040 flags
         Initialized Data
         Read Write

SECTION HEADER #6
   .rsrc name
     2B8 virtual size
    B000 virtual address (000000018000B000 to 000000018000B2B7)
     400 size of raw data
    7C00 file pointer to raw data (00007C00 to 00007FFF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
40000040 flags
         Initialized Data
         Read Only

SECTION HEADER #7
  .reloc name
      F7 virtual size
    C000 virtual address (000000018000C000 to 000000018000C0F6)
     200 size of raw data
    8000 file pointer to raw data (00008000 to 000081FF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
42000040 flags
         Initialized Data
         Discardable
         Read Only

  Summary

        1000 .data
        1000 .idata
        1000 .pdata
        2000 .rdata
        1000 .reloc
        1000 .rsrc
        5000 .text



regards,
George
GeneralRe: DLL preferred load address Pin
Simon P Stevens22-Oct-08 21:38
Simon P Stevens22-Oct-08 21:38 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 21:48
George_George22-Oct-08 21:48 
GeneralRe: DLL preferred load address Pin
Iain Clarke, Warrior Programmer22-Oct-08 21:41
Iain Clarke, Warrior Programmer22-Oct-08 21:41 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 21:48
George_George22-Oct-08 21:48 
AnswerRe: DLL preferred load address Pin
anminxin22-Oct-08 5:40
anminxin22-Oct-08 5:40 
GeneralRe: DLL preferred load address Pin
George_George22-Oct-08 15:31
George_George22-Oct-08 15:31 
QuestionC and x86 assembly interface problem Pin
_chew22-Oct-08 2:47
_chew22-Oct-08 2:47 
AnswerRe: C and x86 assembly interface problem Pin
James R. Twine22-Oct-08 2:59
James R. Twine22-Oct-08 2:59 
GeneralRe: C and x86 assembly interface problem Pin
Mark Salsbery22-Oct-08 5:33
Mark Salsbery22-Oct-08 5:33 
GeneralRe: C and x86 assembly interface problem Pin
_chew22-Oct-08 13:26
_chew22-Oct-08 13:26 
GeneralRe: C and x86 assembly interface problem Pin
James R. Twine23-Oct-08 0:28
James R. Twine23-Oct-08 0:28 
QuestionHow to open a file and write some data into it ? Pin
kapardhi22-Oct-08 2:44
kapardhi22-Oct-08 2:44 
AnswerRe: How to open a file and write some data into it ? Pin
_AnsHUMAN_ 22-Oct-08 2:49
_AnsHUMAN_ 22-Oct-08 2:49 
AnswerRe: How to open a file and write some data into it ? Pin
CPallini22-Oct-08 2:51
mveCPallini22-Oct-08 2:51 
QuestionRe: How to open a file and write some data into it ? Pin
David Crow22-Oct-08 3:14
David Crow22-Oct-08 3:14 
AnswerRe: How to open a file and write some data into it ? Pin
kapardhi22-Oct-08 3:25
kapardhi22-Oct-08 3:25 
QuestionRe: How to open a file and write some data into it ? Pin
David Crow22-Oct-08 3:26
David Crow22-Oct-08 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.