Einzelnen Beitrag anzeigen

Fukiszo
(Gast)

n/a Beiträge
 
#5

AW: "$SetPeFlags 40", was ist das?

  Alt 18. Jan 2018, 12:01
auch eine interessante seite, danke, wobei ich anmerken muss

Zitat:
Delphi relocation table removal

In the project file add Windows (or Winapi.Windows) to the uses clause and follow the uses clause with this:
{$SETPEFLAGS IMAGE_FILE_RELOCS_STRIPPED}

This sets a PE file header characteristics flag telling Windows there is no relocation table. In addition, Delphi takes the hint and ensures that no relocation table is placed in the PE file. Easy!
stimmt so nicht oder der Delphi 7 Compiler macht nicht das was dort erklärt wird.
(ich fand keine "Delphi Version XYZ required to do so" im Text)
bei D7 wird zwar die Flag gesetzt aber die Relocation Table landet trotzdem im file.
mir pers. ist's egal da meine RT eh nur marginale grösse von ein paar bytes hat.
für alle die mit IDE/VCL unterwegs sind sieht die lage anders aus, da bläht sich sowas gerne mal auf.

aber generell stehen da ein paar gute tipps um schon beim compilieren etwas ballast loszuwerden. Dank!
  Mit Zitat antworten Zitat