ORG is not allowed in relocatable modules. Instead, you need to create an absolutly positioned relocatable code segment (now doesn't that sound like an oxymoron!). Just this: abscode_100 CODE 0x100 lalala and in your other module abscode_200 CODE 0x200 Bob Ammerman RAm Systems ----- Original Message ----- From: "Jan-Erik Soderholm XA (TN/PAC)" To: Sent: Saturday, October 04, 2003 2:25 PM Subject: [PIC]: Multiple ORG in relocatable code modules. > Hi. > I'v tried to put two ORG's in my code. One each > in two different modules. One "org h'100'" in one > module and an "org h'200'" in another. > > And I got : > > MPLINK 3.50, Linker > Copyright (c) 2003 Microchip Technology Inc. > Error - section '.org_0' type is non-overlay and absolute but > occurs in more than one input file. > Errors : 1 > > I tried to put a "name" on these sections using > > .itorg org h'100' > > in one module and > > .ptorg org h'200' > > in the other but I got the same error (incl 'org_0'). > > Q1: Is it possible to have two absolut sections in two > different modules at all in this way ? > > Q2: Would it work if both org's was in the same module ? > > Jan-Erik. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads