Maarten Brock wrote:
> Hello Dennis,
>
> You are right. The linker only includes objects from a 
> library if it is referenced. The solution is to either 
> put something in the object that you can explicitly 
> reference or to use the .rel file directly.
>
>   
>
Sure enough, I simply created a reference to a memory location in the .asm

.globl _INT2JT

And then in the c file:
extern volatile BYTE INT2JT;
BYTE dummy=INT2JT;

That solves the issue and I can include the custom assembly in my library.

-Dennis

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to