Linker strange problem

David Korn
Mon Feb 4 05:03:00 GMT 2002

>-----Original Message-----
>From: []
>Sent: 04 February 2002 11:59

>I did a test program for my sh2 board, and everything seem to work well
>the program is made of several objects and linked together,
>The surprising thing is that changing the order of the objects in the 
>linker command, (providing of course that all symbols are resolved)
>the program stop working!
>do anyone have an idea?
>Thanks to all

    Hi Alberico,

  When shuffling around the layout in memory causes a program to start
or stop working, it is almost always because you have a stray pointer
or array overrun; with one layout of the variables, you get lucky, and
your stray pointer doesn't overwrite anything important, but with a 
different layout you may not be so lucky and the program may crash itself.

Burn your ID card!
Help support the campaign, copy this into your .sig!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list