]> git.wh0rd.org Git - elf2flt.git/commit
The patch below teaches elf2flt to handle R_68K_PC16 relocs.
authorDavid McCullough <davidm@snapgear.com>
Tue, 23 May 2006 22:28:31 +0000 (22:28 +0000)
committerDavid McCullough <davidm@snapgear.com>
Tue, 23 May 2006 22:28:31 +0000 (22:28 +0000)
commit56394e90f8bdd207f3c239d8fb9c64b28cffffc7
tree72db7ba0daeae692a437ade8cf31c2c73900d470
parentbc8a22491c3b0223e80857bef66bef9f8f0a4a96
The patch below teaches elf2flt to handle R_68K_PC16 relocs.
Our immediate need for this was to deal with relocs for uClibc's
libc/sysdeps/linux/m68k/clone.S, which has "bcc.w __syscall_error"
instructions.  It might be argued that clone.S should be using jbcc
instead, in case __syscall_error ends up too far away.  But even if
that's true, elf2flt should still support such branches in cases
whether the user _knows_ that the target is within range.
So I think elf2flt should be patched either way.

We've been using this patch for a while now without problems.
Please install if OK.

Richard

Signed-off-by: Richard Sandiford <richard@codesourcery.com>
elf2flt.c