Relocations section is not discardable

ID PE008 Level WARNING Category Optimization

Description

A relocations executable section is not marked discardable. This will lead to increased memory consumption, as the loader will not be able to free the memory used by the relocation directory after it had been processed.

Mitigation

  • Do not change the default section attributes for the relocations section (usually called .reloc).
  • Do not merge relocations section with other executable sections.

Arguments

This rule has the following output arguments:

  • section_name - Relocations section name