This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Paranoid NOP padding?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Bernd Jendrissek <berndj at prism dot co dot za>, binutils at sources dot redhat dot com
- Date: Thu, 14 Jul 2005 11:59:29 +0200
- Subject: Re: Paranoid NOP padding?
- References: <20050714071837.GR6273@prism.co.za> <jer7e13iiv.fsf@sykes.suse.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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