Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/m68k_elf Reduce the alignment constraint from 4 to 2...



details:   https://anonhg.NetBSD.org/src/rev/4f5efbf591c3
branches:  trunk
changeset: 516003:4f5efbf591c3
user:      scw <scw%NetBSD.org@localhost>
date:      Sat Oct 13 09:21:50 2001 +0000

description:
Reduce the alignment constraint from 4 to 2. This fixes the problem where
gas(2) pads the text segment with 0x0 instead of NOP. Since m68k instructions
only need 16-bit alignment, .align 2 works just fine.

diffstat:

 lib/csu/m68k_elf/dot_init.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 04f395414127 -r 4f5efbf591c3 lib/csu/m68k_elf/dot_init.h
--- a/lib/csu/m68k_elf/dot_init.h       Sat Oct 13 08:25:57 2001 +0000
+++ b/lib/csu/m68k_elf/dot_init.h       Sat Oct 13 09:21:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dot_init.h,v 1.1 2001/05/12 00:17:55 kleink Exp $ */
+/* $NetBSD: dot_init.h,v 1.2 2001/10/13 09:21:50 scw Exp $ */
 
 /*-
  * Copyright (c) 2001 Ross Harvey
@@ -51,7 +51,7 @@
                __asm (                                 \
                ".section "#sect",\"ax\",@progbits      \n"\
                #entry_pt":                             \n"\
-               "       .align  4                       \n"\
+               "       .align  2                       \n"\
                "       /* fall thru */                 \n"\
                ".previous")
 



Home | Main Index | Thread Index | Old Index