This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Paranoid NOP padding?


On Thu, Jul 14, 2005 at 10:21:12AM +0200, Andreas Schwab wrote:
> Bernd Jendrissek <berndj@prism.co.za> writes:
> 
> > Sometimes, though, the CPU should *never* execute code in a "gap".
> > Think gaps between functions, for example.
> 
> The assembler allows you to specify a different fill pattern to be used as
> padding (the second argument of the .align directive).

Yes, GCC would need to be changed to do that in the function alignment
directives.
But linker inserts padding as well, when padding in code segment between
different input sections.  So it needs a binutils change as well.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]