This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Thank you for the hint! At the moment I use ld : hello.world.c $(LD) -T../linker/linker.script.sc -o hello.world $(CRTBEGIN_FILE) $(CRT0_FILE) $(LIBDIRS) hello.world.o -lgcc -lg -lc -lgcc $(CRTEND_FILE) It works and a few hours ago I had my first successfull download to the board. It is still a bit clumsy to make first object files and than link them by hand. I tried to use test :hello.world.c $(CC) -g -v $(LIBDIRS) $(INCLUDEDIRS) -o hello.world.test \ -Wl, -T$(LINKER_SCRIPT) hello.world.c to pass the script name to the linker. It does not work. The result: /home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/collect2 -X -o hello.world.test /home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/crtbegin.o /home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/crt0.o -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2 -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/arm-elf/lib -L/home/hiwi/lache/tools/arm-elf/lib/ -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2 -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/arm-elf/lib -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2 -L/home/hiwi/lache/tools/H-i686-pc-linux-gnu/arm-elf/lib /tmp/ccVI0xa0.o -lgcc -lg -lc -lgcc /home/hiwi/lache/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/crtend.o -T/home/hiwi/lache/c/linker/linker.script.sc /home/hiwi/lache/tools/H-i686-pc-linux-gnu/arm-elf/bin/ld: cannot open : No such file or directory collect2: ld returned 1 exit status This is the last stage of the compiling process. If I would build the object-files and than link them by hand with the above comment (replacing /tmp/ccVI0xa0.o with hello.world.o) it would link it!! How can I tell the linker several options? (-Wl, -T$(LINKER_SCRIPT),--verbose didn't work) Jens-Christian Lache Technische Universitaet Hamburg-Harburg www.tu-harburg.de/~sejl1601 Mail: lache@tu-harburg.de lache@ngi.de Tel.: +0491759610756 On Tue, 14 Nov 2000, Richard Earnshaw wrote: > > My program-code has to be linked at an address higher than > > 0x0201 8000. Otherwise it would delete my monitor program and > > I loose the connection to the board. > > > Can you not use the -Ttext option to set the base address for the code > section? > > R. > > ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |