avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] rjmp to an absolute address


From: Dave N6NZ
Subject: Re: [avr-gcc-list] rjmp to an absolute address
Date: Wed, 07 Nov 2007 10:33:55 -0800
User-agent: Thunderbird 1.5 (X11/20051201)

Well, I should think that you could pick up the symbol for the beginning of the text section that is already defined in the default linker script, whatever that is :)

I'm sure somebody here knows what that is off the top of their head. Or it shouldn't take much research to find it.

-dave

Shaun Jackman wrote:
The instruction `rjmp 0' jumps to the beginning of the current
section. If I want to jump to the absolute address 0, the best
workaround I have at the moment is to use the linker option `--defsym
application=0' and `rjmp application' as described here [1]. Is there
any way in source code to use the rjmp instruction to jump to an
absolute address without using a linker option or a linker script? The
jmp and ijmp instructions would work, but I'm specifically interested
in the rjmp instruction.

Please cc me in your reply. Thanks,
Shaun

[1] http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=196731


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list






reply via email to

[Prev in Thread] Current Thread [Next in Thread]