[PATCH] libgloss/i386/cygmon.ld

Corinna Vinschen vinschen@redhat.com
Wed Aug 25 16:16:00 GMT 2004


Hi,

below is a patch to fix an alignment problem and a missing section
handling problem when running an embedded i386 target through cygmon.

Ok to apply?

Corinna

	* libgloss/i386/cygmon.ld (.text): Fix alignment.
	(.rodata): Handle .rodata.* sections.

Index: libgloss/i386/cygmon.ld
===================================================================
RCS file: /cvs/cvsfiles/gnupro/libgloss/i386/cygmon.ld,v
retrieving revision 1.2
diff -u -u -r1.2 cygmon.ld
--- libgloss/i386/cygmon.ld     16 Mar 2004 18:56:03 -0000      1.2
+++ libgloss/i386/cygmon.ld     24 Aug 2004 17:55:24 -0000
@@ -34,6 +34,7 @@
     *(.rel.sdata)
     PROVIDE (__runtime_reloc_stop = .);
     *(.fini)
+    . = ALIGN(4);
      __CTOR_LIST__ = .;
     CONSTRUCTORS
     LONG(-1)
@@ -54,6 +55,7 @@
   }
   .rodata : {
     *(.rodata)
+    *(.rodata.*)
   }
   .eh_frame :
   {

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.



More information about the Newlib mailing list