[Top][All Lists]

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

[PATCH]: Fix baseboards/m68hc11-sim.exp configuration

From: Stephane Carrez
Subject: [PATCH]: Fix baseboards/m68hc11-sim.exp configuration
Date: Thu, 25 Jul 2002 00:39:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20020508 Netscape6/6.2.3


This patch fixes the configuration for 68hc11/68hc12.  This is the configuration
I am using for validation of gcc 3.x.  The linker script sim-valid.ld is 
by Newlib.

Can you integrate this patch ?

Note: I have copyright assignment for DejaGNU.


2002-07-25  Stephane Carrez  <address@hidden>

        * baseboards/m68hc11-sim.exp: Use sim-valid.ld linker script
        and remove linker options.

Index: baseboards/m68hc11-sim.exp
RCS file: /cvsroot/dejagnu/dejagnu/baseboards/m68hc11-sim.exp,v
retrieving revision 1.1
diff -u -p -r1.1 m68hc11-sim.exp
--- baseboards/m68hc11-sim.exp  21 May 2001 04:40:58 -0000      1.1
+++ baseboards/m68hc11-sim.exp  24 Jul 2002 20:25:21 -0000
@@ -19,13 +19,14 @@ set_board_info compiler  "[find_gcc]"
 # options have been specified before we get here.
 set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]";
+set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]";
 # The GCC testsuite programs create quite large executables for the 68HC11.
 # We have to give enough room for the text section and we must make sure
 # that the data section does not overlay the 68HC11 IO registers. We could
 # relocate the IO registers but this would add some complexity to the crt0.
-set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags] 
-Wl,-Ttext,0x2000 -Wl,-Tdata,0x1100";
-# No linker script needed.
-set_board_info ldscript "-Wl,--script,sim-valid.x";
+# For this use specific linker script (provided by Newlib/libgloss)
+set_board_info ldscript "-Wl,--script,sim-valid.ld";
 # Can't pass arguments to programs on this target..
 set_board_info noargs  1
@@ -65,7 +66,7 @@ set_board_info mathlib ""
 # The first -lbcc is here to get the small implementation of printf.
 # The second -lbcc provides the system calls (write, read) used in -lc.
 # The last -lc defines the __errno used in -lbcc.
-set_board_info libs "-lbcc -lc -lgcc -lc -lbcc"
+set_board_info libs "-lc -lbcc -lgcc -lc -lbcc"
 # sizeof int != sizeof long.
 set_board_info gdb,short_int 1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]