sparc: fix the extraction of relocation IDs from r_type fields.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 5 Oct 2015 15:36:33 +0000 (17:36 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 5 Oct 2015 22:03:07 +0000 (00:03 +0200)
commit22843755fa0b6870162660105c6fbbd1ba078390
treefb119639af804f29016c9548201d0799596afce5
parentee00afbb2b068d1fef7f37e32ddd346b78230d5a
sparc: fix the extraction of relocation IDs from r_type fields.

This patch adds support for a RELOC_TYPE_ID transform macros that
backends can use before including common-reloc.c.  The sparc backend
uses this in order to extract the relocation IDs from r_type fields.
In this target the most significative 24 bits of r_type are used to
store an additional addend in some relocation types.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
backends/ChangeLog
backends/common-reloc.c
backends/sparc_init.c