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.

HTH,
Maarten


> I've created a little custom assembly for an interrupt autovector and 
> jump table.
> 
> If I include my code directly with a .rel file like this:
> 
> asx8051 -logs custom.asm # gives me custom.rel
> sdcc mymain.c custom.rel
> 
> I get a working jump table.
> 
> If I instead put my rel file in a library:
> 
> asx8051 -logs custom.asm
> sdcclib custom.lib custom.rel
> sdcc mymain.c custom.lib
> 
> I no longer have a functioning jump table.
> 
> I think sdcc only takes stuff from a lib file if the symbol is 
> references.  Is there any way to make this work, or should I just use 
> the .rel file explicitly?
> 
> -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