Linker Function Packing

Giganews Newsgroups
Subject: Linker Function Packing
Posted by:  Jeffrey Walton (noload…@gmail.com)
Date: Wed, 14 May 2008

Hi All,

I've been trying to locate a reason/documentation for the way the
Visual Studio linker packs functions. It Release builds, it appears
functions are placed on 16 byte boundaries in the .text section.
Functions which require padding are then supplemented with 0xCC in
their tail. An exception is some executable epilogue that appears to
be aligned to the byte.

Can anyone offer a reason?

Thanks,
Jeff
Jeffrey Walton

Replies