This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] libgloss/i386/cygmon.ld
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Wed, 25 Aug 2004 14:49:02 +0200
- Subject: [PATCH] libgloss/i386/cygmon.ld
- Reply-to: newlib at sources dot redhat dot com
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.