**** BEGIN LOGGING AT Wed Feb 07 02:59:57 2007 Feb 07 10:55:52 vmaster: are you there? and have a little bit of time? Feb 07 11:04:12 aproemel: hey aproemel Feb 07 11:04:20 hi Feb 07 11:04:30 i hope you can help me Feb 07 11:04:41 i've written a simple C routine Feb 07 11:04:49 and compiled it to an *.o file Feb 07 11:05:12 tell the linker that it should link the start.o and the mainc.o to my test.bin Feb 07 11:05:37 gcc -nostartfiles -nostdlib Feb 07 11:05:46 but now my code is located at 8080 Feb 07 11:05:51 and not at 00 Feb 07 11:06:30 if i only build my assembler file Feb 07 11:06:36 its located correctly Feb 07 11:08:44 hum, could you show me your makefile (or the commands you entered) and your linker script? (pastebin.ca for example) Feb 07 11:08:55 ok, i'll post it Feb 07 11:11:04 http://pastebin.ca/343916 Feb 07 11:12:59 i've pasted a failure ^^ Feb 07 11:13:07 main: step1 step2 Feb 07 11:13:51 uhm, you should compile your C file with -c - that prevents the linking. I suppose main.o is already linked Feb 07 11:14:13 ok, i'll test it Feb 07 11:14:30 and your linker script links to 0x200000, not 0x0 Feb 07 11:14:49 20000 after remamp 0x00 Feb 07 11:15:17 i'll upload it, and then automatically remap Feb 07 11:15:53 uhm yeah, but absolute addresses are still going to be in the 0x200000 range, no matter if you remap Feb 07 11:16:17 so after the linking stage, you should expect your symbols in the 0x2..... range, not in the 0x0 range Feb 07 11:16:29 k changed it to 00 Feb 07 11:16:37 but the code is still located ad 8080 Feb 07 11:17:37 what does "file main.o" say? Feb 07 11:17:51 the Map File says Feb 07 11:17:58 LOAD main.o Feb 07 11:18:23 0x00008000 PROVIDE(__executable_start, 0x8000) Feb 07 11:18:57 ELF32-bit LSB relocatable, ARM, version 1 (ARM), not stripped Feb 07 11:19:01 is file for main.o Feb 07 11:21:43 could you tar all files together and send them? Feb 07 11:21:52 sure Feb 07 11:22:02 either DCC, or Dominic Rath gmx de Feb 07 11:22:12 i'll mail them Feb 07 11:22:21 irc is on my notebook Feb 07 11:25:06 I'll send it Feb 07 11:28:14 ok, i'll have a look Feb 07 11:30:58 you've used -t instead of -T Feb 07 11:31:15 -t is trace, -T selects the script Feb 07 11:31:44 vmaster: that was my fault Feb 07 11:31:46 THNX Feb 07 11:32:07 seems to be placed correct now Feb 07 11:32:24 but why does the asm file compiled and linked work? Feb 07 11:34:44 maybe just a coincidence Feb 07 11:35:09 I searched for this failure everywhere Feb 07 11:35:12 actually, that -t was my fault - I told you to write a linker script and use it with -t, which of course should have been -T the first time Feb 07 11:35:57 sorry about that Feb 07 11:36:01 no problem Feb 07 11:36:08 my fault was, to copy and paste it Feb 07 11:36:14 and don't take a look in man Feb 07 11:40:33 how do i get the file smaller? Feb 07 11:40:58 i tried to use ...-strip Feb 07 11:41:08 because 34kb are to large Feb 07 11:42:14 loader.o <1kb main.o <1kb and the linked loader.bin 34k Feb 07 11:59:20 the output file is the ELF file (you shouldn't call it .bin, btw.) Feb 07 11:59:45 try arm-xxx-objcopy -O binary ELFfile BINfile Feb 07 12:01:51 i call it elf now Feb 07 12:01:55 ok, i'll test Feb 07 12:03:55 works Feb 07 16:15:47 vmaster: you alive? **** ENDING LOGGING AT Thu Feb 08 02:59:58 2007