Duplicating a section in a link

William A. Gatliff bgat@billgatliff.com
Fri May 24 12:07:00 GMT 2002


> The example has:
> char *src = _etext;
> char *dest = _data;
> Buf what worked for me is more like:
> extern char etext;
> extern char data;
> char *src = &etext;
> char *dest = &data;

Yea, some targets add the underscore, some don't.

Glad you got it working,

Bill Gatliff

Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

More information about the crossgcc mailing list