This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: m68k padding between methods at ld time
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 28 Sep 2009 08:29:53 -0500
- Subject: Re: m68k padding between methods at ld time
- References: <4ABF9919.2070909@oarcorp.com> <4AC0773F.1060501@redhat.com>
Nick Clifton wrote:
Hi Joel,
I have been looking at an objdump of a Coldfire application
and noticed that the fill pattern between methods is
0x4e75 which is an rts not 0x4e71 which is a nop.
Is this because ld/emulparams/m68kelf.sh has this:
NOP=0x4e754e75
Yes.
A patch to change this to
NOP=0x41714e71
is pre-approved.
Thanks. I do not have a tree for writing checked out at the
moment. Attached is the patch.
2009-09-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* emulparams/m68kelf.sh: NOP is 0x4e71 not 0x4e75.
Cheers
Nick
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: emulparams/m68kelf.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/m68kelf.sh,v
retrieving revision 1.9
diff -u -r1.9 m68kelf.sh
--- emulparams/m68kelf.sh 5 Feb 2009 21:52:36 -0000 1.9
+++ emulparams/m68kelf.sh 28 Sep 2009 13:28:18 -0000
@@ -6,7 +6,7 @@
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
ARCH=m68k
MACHINE=
-NOP=0x4e754e75
+NOP=0x4e714e71
TEMPLATE_NAME=elf32
EXTRA_EM_FILE=m68kelf
GENERATE_SHLIB_SCRIPT=yes