Respond to this messageReturn to Index
Original Message
  • hello.map
    • Michael Calkins (Login MCalkins)
      ASM Forum
      Posted Feb 19, 2012 6:05 PM


      Memory Configuration

      Name             Origin             Length             Attributes
      *default*        0x00000000         0xffffffff

      Linker script and memory map

                      0x00400000                __image_base__ = 0x400000
                      0x00000000                __dll__ = 0x0
                      0x00400000                __ImageBase = 0x400000
                      0x00001000                __section_alignment__ = 0x1000
                      0x00000200                __file_alignment__ = 0x200
                      0x00000004                __major_os_version__ = 0x4
                      0x00000000                __minor_os_version__ = 0x0
                      0x00000001                __major_image_version__ = 0x1
                      0x00000000                __minor_image_version__ = 0x0
                      0x00000004                __major_subsystem_version__ = 0x4
                      0x00000000                __minor_subsystem_version__ = 0x0
                      0x00000003                __subsystem__ = 0x3
                      0x00200000                __size_of_stack_reserve__ = 0x200000
                      0x00001000                __size_of_stack_commit__ = 0x1000
                      0x00100000                __size_of_heap_reserve__ = 0x100000
                      0x00001000                __size_of_heap_commit__ = 0x1000
                      0x00000000                __loader_flags__ = 0x0
                      0x00000000                __dll_characteristics__ = 0x0
      LOAD C:\WINDOWS\system32/kernel32.dll
      LOAD hello.obj
                      0x00000218                . = SIZEOF_HEADERS
                      0x00001000                . = ALIGN (__section_alignment__)

      .text           0x00401000      0x200
       *(.init)
       *(.text)
       .text          0x00401000       0x2c hello.obj
       .text          0x0040102c        0x8 d000001.o
                      0x0040102c                ExitProcess
       .text          0x00401034        0x8 d000002.o
                      0x00401034                GetStdHandle
       .text          0x0040103c        0x8 d000003.o
                      0x0040103c                WriteConsoleW
       *(SORT(.text$*))
       *(.text.*)
       *(.glue_7t)
       *(.glue_7)
                      0x00401044                ___CTOR_LIST__ = .
                      0x00401044                __CTOR_LIST__ = .
                      0x00401044        0x4 LONG 0xffffffff
       *(.ctors)
       *(.ctor)
       *(SORT(.ctors.*))
                      0x00401048        0x4 LONG 0x0
                      0x0040104c                ___DTOR_LIST__ = .
                      0x0040104c                __DTOR_LIST__ = .
                      0x0040104c        0x4 LONG 0xffffffff
       *(.dtors)
       *(.dtor)
       *(SORT(.dtors.*))
                      0x00401050        0x4 LONG 0x0
       *(.fini)
       *(.gcc_exc)
                      0x00401054                PROVIDE (etext, .)
       *(.gcc_except_table)

      .data           0x00402000        0x0
                      0x00402000                __data_start__ = .
       *(.data)
       *(.data2)
       *(SORT(.data$*))
       *(.jcr)
                      0x00402000                __data_end__ = .
       *(.data_cygwin_nocopy)

      .rdata          0x00402000      0x200
       *(.rdata)
       .rdata         0x00402000       0x1e hello.obj
       *(SORT(.rdata$*))
                      0x0040201e                __rt_psrelocs_start = .
       *(.rdata_runtime_pseudo_reloc)
                      0x0040201e                __rt_psrelocs_end = .
                      0x00000000                __rt_psrelocs_size = (__rt_psrelocs_end - __rt_psrelocs_start)
                      0x0040201e                ___RUNTIME_PSEUDO_RELOC_LIST_END__ = .
                      0x0040201e                __RUNTIME_PSEUDO_RELOC_LIST_END__ = .
                      0x0040201e                ___RUNTIME_PSEUDO_RELOC_LIST__ = (. - __rt_psrelocs_size)
                      0x0040201e                __RUNTIME_PSEUDO_RELOC_LIST__ = (. - __rt_psrelocs_size)

      .eh_frame
       *(.eh_frame*)

      .pdata
       *(.pdata)

      .bss            0x00403000        0x8
                      0x00403000                __bss_start__ = .
       *(.bss)
       .bss           0x00403000        0x8 hello.obj
       *(COMMON)
                      0x00403008                __bss_end__ = .

      .edata
       *(.edata)

      /DISCARD/
       *(.debug$S)
       *(.debug$T)
       *(.debug$F)
       *(.drectve)
       *(.note.GNU-stack)
       *(.gnu.lto_*)

      .idata          0x00404000      0x200
       SORT(*)(.idata$2)
       .idata$2       0x00404000       0x14 d000000.o
                      0x00404000                head_KERNEL32_dll
       SORT(*)(.idata$3)
                      0x00404014        0x4 LONG 0x0
                      0x00404018        0x4 LONG 0x0
                      0x0040401c        0x4 LONG 0x0
                      0x00404020        0x4 LONG 0x0
                      0x00404024        0x4 LONG 0x0
       SORT(*)(.idata$4)
       .idata$4       0x00404028        0x0 d000000.o
       .idata$4       0x00404028        0x4 d000001.o
       .idata$4       0x0040402c        0x4 d000002.o
       .idata$4       0x00404030        0x4 d000003.o
       .idata$4       0x00404034        0x4 d000004.o
                      0x00404038                __IAT_start__ = .
       SORT(*)(.idata$5)
       .idata$5       0x00404038        0x0 d000000.o
       .idata$5       0x00404038        0x4 d000001.o
                      0x00404038                _imp_ExitProcess
       .idata$5       0x0040403c        0x4 d000002.o
                      0x0040403c                _imp_GetStdHandle
       .idata$5       0x00404040        0x4 d000003.o
                      0x00404040                _imp_WriteConsoleW
       .idata$5       0x00404044        0x4 d000004.o
                      0x00404048                __IAT_end__ = .
       SORT(*)(.idata$6)
       .idata$6       0x00404048       0x10 d000001.o
       .idata$6       0x00404058       0x10 d000002.o
       .idata$6       0x00404068       0x10 d000003.o
       SORT(*)(.idata$7)
       .idata$7       0x00404078        0x4 d000001.o
       .idata$7       0x0040407c        0x4 d000002.o
       .idata$7       0x00404080        0x4 d000003.o
       .idata$7       0x00404084       0x10 d000004.o
                      0x00404084                KERNEL32_dll_iname

      .CRT            0x00405000        0x0
                      0x00405000                ___crt_xc_start__ = .
       *(SORT(.CRT$XC*))
                      0x00405000                ___crt_xc_end__ = .
                      0x00405000                ___crt_xi_start__ = .
       *(SORT(.CRT$XI*))
                      0x00405000                ___crt_xi_end__ = .
                      0x00405000                ___crt_xl_start__ = .
       *(SORT(.CRT$XL*))
                      0x00405000                ___crt_xp_start__ = .
       *(SORT(.CRT$XP*))
                      0x00405000                ___crt_xp_end__ = .
                      0x00405000                ___crt_xt_start__ = .
       *(SORT(.CRT$XT*))
                      0x00405000                ___crt_xt_end__ = .

      .tls            0x00405000        0x0
                      0x00405000                ___tls_start__ = .
       *(.tls)
       *(.tls$)
       *(SORT(.tls$*))
                      0x00405000                ___tls_end__ = .

      .endjunk        0x00405000        0x0
                      0x00405000                PROVIDE (end, .)
                      0x00405000                PROVIDE (_end, .)
                      0x00405000                __end__ = .

      .rsrc
       *(.rsrc)
       *(SORT(.rsrc$*))

      .reloc
       *(.reloc)

      .stab
       *(.stab)

      .stabstr
       *(.stabstr)

      .debug_aranges
       *(.debug_aranges)

      .debug_pubnames
       *(.debug_pubnames)

      .debug_pubtypes
       *(.debug_pubtypes)

      .debug_info
       *(.debug_info)
       *(.gnu.linkonce.wi.*)

      .debug_abbrev
       *(.debug_abbrev)

      .debug_line
       *(.debug_line)

      .debug_frame
       *(.debug_frame*)

      .debug_str
       *(.debug_str)

      .debug_loc
       *(.debug_loc)

      .debug_macinfo
       *(.debug_macinfo)

      .debug_weaknames
       *(.debug_weaknames)

      .debug_funcnames
       *(.debug_funcnames)

      .debug_typenames
       *(.debug_typenames)

      .debug_varnames
       *(.debug_varnames)

      .debug_ranges
       *(.debug_ranges)

      .debug_types
       *(.debug_types)
       *(.gnu.linkonce.wt.*)
      OUTPUT(hello.exe pei-i386)
      LOAD d000000.o
      LOAD d000001.o
      LOAD d000002.o
      LOAD d000003.o
      LOAD d000004.o
    Your Name
    Message Title
    Message Text
    Image Services Photobucket.com
    Options
    Enable formatted text (what's this?)