rtld: Reorganize reloc_plt and reloc_jmpslots
authorJohn Marino <draco@marino.st>
Sat, 14 Jan 2012 15:19:06 +0000 (16:19 +0100)
committerJohn Marino <draco@marino.st>
Mon, 16 Jan 2012 18:47:31 +0000 (19:47 +0100)
commitf609f0351a301d4718a3bda7208d3f190462cce6
tree1a3a43af1da99c8f0171bb1ef9250ac2ee374e8f
parent41c5d36a9a802638fe5ee70307b54b30c7354956
rtld: Reorganize reloc_plt and reloc_jmpslots

In the future, more reloc types than just R_$ARCH_JMP_SLOT will be
supported.  FreeBSD already has them and converted to a switch statement
and introduced a new rtld_error message rather than use an ASSERT.
Follow suit and fix a mismatching const as well.
libexec/rtld-elf/i386/reloc.c
libexec/rtld-elf/x86_64/reloc.c