Hi! On Thu, May 17, 2012 at 05:38:39PM -0700, Agent Friday wrote: > *sigh* I'm already not a big fan of having a different cfg file for > every single target I build, let alone multiple. I don't know if > that's the expectation, but it's how it always ends up for me. Yes, that's the way it should be done. You are also required to write different source code files for your projects, aren't you? The linker config is similar to other source files. There are some builtin linker configurations for standard cases as there are some builtin library files that contain standard subroutines. In both cases, if you need something else, you will have to write it yourself. > > > 2. Are the __segment_LOAD__ symbols supposed to still work? > > > > 2. The output format has no effect on the "define=" attribute. > > OK, looks like there's a problem then. I have not yet been able to > get a segment load address correctly into my code if I output to > o65. I'll try some differenrt tests and see what I can learn. Greg is right here, the linker will always use $0000 as start address for the relocations, but the symbols are defined using the start address in the config file. Since the format is relocatable anyway, what is the reason not to use a start address of $0000? > I did an ld65 --dump-config lunix... all I could think to do. Are > there perhaps better starting points? The config used for modules is also available and it is simpler. The module target is used for drivers (tgi, mouse and serial). They use a jump table at the start of the code for the entry points into the driver. > Thanks Uz, hope your have a great vacation. Thanks! Yes, the vacation was great. I had just some problems with internet. We were on the third floor of the hotel, while the WLAN access point was on ground level. So there were only a few (quite inconvenient) positions where I was able to get a WLAN connection, and just moving the netbook a few centimeters to one side would cut it. So I didn't write many mails in the last 10 days:-) Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat May 26 12:31:31 2012
This archive was generated by hypermail 2.1.8 : 2012-05-26 12:31:34 CEST