Are you using relative jumps? Can you post a sample?

> -----Original Message-----
> I'm trying to write some assembler embedded in C via __asm__
> __volatile__().
> A  couple hundred lines or so.  Compiler doesn't complain,
> but linker gives
> "relocation truncated to fit" errors on any instruction that
> refers to a
> label (B's and EX's).  I know that message usually (in C)
> means you are
> calling an unknown function or else are branching too far.
> Neither of these
> conditions is the case, since I am only branching down a few
> bytes, and I'm
> not calling any functions by name.  Total dll length is under 32K.
>
> Fooling around, I note that by recoding to avoid using any
> labels (lots of
> relative branching), I can eliminate the link time errors.
> So my linker is
> choking basically on all labels.  Anybody know what's up, or
> what I can do
> about it?  Writing labelless code is not an appealing prospect.


Reply via email to