This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: mn10300: PCREL16 reloc question
- From: DJ Delorie <dj at redhat dot com>
- To: nickc at redhat dot com
- Cc: binutils at sourceware dot org
- Date: Fri, 11 Jan 2008 14:06:38 -0500
- Subject: Re: mn10300: PCREL16 reloc question
- References: <200712140225.lBE2PfvQ027081@greed.delorie.com> <476BF8A4.4000601@redhat.com>
> > Are there any real cases where we'd need this range, and not the usual
> > -0x8000..0x7fff range?
>
> I expect that you could use a variant of one of the mn10300 linker tests to
> check this. eg changing the JMP instruction in ld/tests/ld-mn10300/i135409-4.s
> to umm, some 16-bit-pcrel using instruction. You would have to fix the offsets
> in i135409-4.t as well of course.
Jumps use the -0x8000..0x7fff range. Are there any opcodes that are
PCREL and use some range other than -0x8000..0x7fff ? Or any
assembler pseudos or macros that use it?
If not, we should change the range check.