What's the replacement for REBASE.EXE?

前端 未结 3 1153
遥遥无期
遥遥无期 2020-12-16 18:57

I have a need to rebase the group of DLL files that I install with my program, because it\'s a 32-bit program and the address space is just too fragmented right now. Also t

3条回答
  •  别那么骄傲
    2020-12-16 19:56

    editbin.exe comes with VS2010 and has a /REBASE option.

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>editbin
    Microsoft (R) COFF/PE Editor Version 10.00.40219.01
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    usage: EDITBIN [options] [files]
    
       options:
    
          /ALLOWBIND[:NO]
          /ALLOWISOLATION[:NO]
          /BIND[:PATH=path]
          /DYNAMICBASE[:NO]
          /ERRORREPORT:{NONE|PROMPT|QUEUE|SEND}
          /HEAP:reserve[,commit]
          /LARGEADDRESSAWARE[:NO]
          /NOLOGO
          /NXCOMPAT[:NO]
          /REBASE[:[BASE=address][,BASEFILE][,DOWN]]
          /RELEASE
          /SECTION:name[=newname][,[[!]{CDEIKOMPRSUW}][A{1248PTSX}]]
          /STACK:reserve[,commit]
          /SUBSYSTEM:{BOOT_APPLICATION|CONSOLE|EFI_APPLICATION|
                      EFI_BOOT_SERVICE_DRIVER|EFI_ROM|EFI_RUNTIME_DRIVER|
                      NATIVE|POSIX|WINDOWS|WINDOWSCE}[,#[.##]]
          /SWAPRUN:{[!]CD|[!]NET}
          /TSAWARE[:NO]
          /VERSION:#[.#]
    

    And as Mark points out you'll want to turn off ASLR, which you can do by using /DYNAMICBASE:no

提交回复
热议问题