From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russ.Shaw" To: crossgcc@sourceware.cygnus.com, gcc-help@gcc.gnu.org Subject: Re: gcc, crt0, and linker scripts... Date: Wed, 02 Aug 2000 06:08:00 -0000 Message-id: <39881DCD.11EDF4F5@webaxs.net> References: <001101c01fe1$7e10b260$58210b0a@huawei.com.cn> <3987B6DA.61538FBF@webaxs.net> <39880727.84586D00@webaxs.net> X-SW-Source: 2000-08/msg00007.html I've worked it all out now :) "Russ.Shaw" wrote: > > Hi all, > > I'm using gcc-2.95.5 configured as a cross-compiler for the > hitachi H8/300H cpu core. I'm using mandrake-7.0. > > I want to use h8300-hms-gcc to generate code for my own system. > > However, what does gcc use for a linker script? I need to tell > gcc about my eprom memory map etc. > > I could get gcc to use my own script using -Wl,T, but > i'll still get linker errors because the output section names > need to be compatible with the supplied crt0 start-up file. > > I can't use my own startup file, because the standard C libraries > refer to symbols such as _end in crt0.o. > > So what is the 'normal' procedure for configuring a cross-gcc to > custom hardware? Also, in my install, i have these linker scripts: > > /usr/local/h8300-hms/lib/ldscripts/h8300h.x > h8300h.xbn > h8300h.xn > h8300h.xr > h8300h.xu > > I don't know if gcc knows about these or not. > -- ******************************************* * Russell Shaw, B.Eng, M.Eng(Research) * * email: russell@webaxs.net * * Australia * ******************************************* ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com