Linking problem while building RTEMS-4.6.2 'pc386' under Cygw in
Mills, John M.
Mills.J at ems-t.com
Tue Jan 25 18:16:27 UTC 2005
Joel -
Whew - one line made a _big_ difference!
Thanks.
-----Original Message-----
From: Joel Sherrill [joel at OARcorp.com]
[mailto:joel.sherrill at OARcorp.com]
Mills, John M. wrote:
> Hello -
>
> I expect this is a FAQ, but I just got bitten.
>
> I built and installed 'i386-rtems' tools under Cygwin, then built
> RTEMS-4.6.2 for the 'pc386' BSP. It appeared to build the components
> successfully, but the build crashes when it tries to link the samples.
There
> appears to be a conflict in 'linkcmds' mapping. ...
JS- Not a FAQ but a recurring issue with different section names as gcc adds
JS- new sections. :-)
JS- This is a new section added with gcc 3.3.x. The CVS trunk has this
JS- patch to the linkcmds file:
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
=+=
$ diff -u
/usr1/rtems/4.6-work/rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds
/usr1/rtems/work/rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds
--- /usr1/rtems/4.6-work/rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds
Thu Sep 4 13:44:04 2003
+++ /usr1/rtems/work/rtems/c/src/lib/libbsp/i386/pc386/startup/linkcmds
Sun Jul 25 09:21:43 2004
@@ -28,7 +28,7 @@
| * http://www.rtems.com/license/LICENSE.
|
**************************************************************************
|
-| $Id: linkcmds,v 1.14.2.1 2003/09/04 18:44:04 joel Exp $
+| $Id: linkcmds,v 1.16 2004/07/25 14:21:43 joel Exp $
+--------------------------------------------------------------------------*
/
@@ -82,6 +82,7 @@
*(.gnu.linkonce.r*)
_erodata = ALIGN( 0x10 ) ;
+ *(.jcr)
_etext = ALIGN( 0x10 ) ;
}
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
=+=
Builds fine - wonder if it'll run?
- JMM
John M. Mills
Staff Engineer
EMS Technologies
660 Engineering Drive
Norcross, GA 30092
770.263.9200 ext4882
More information about the users
mailing list