From: Alan Modra Date: Sat, 12 May 2007 06:45:33 +0000 (+0000) Subject: include/elf/ X-Git-Tag: binutils-2_18-branchpoint~771 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f4416b5f935edad0191d7e60952db517bb2671c;p=platform%2Fupstream%2Fbinutils.git include/elf/ * spu.h (R_SPU_ADDR16X): Define. (R_SPU_PPU32, R_SPU_PPU64): Renumber. bfd/ * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 01234ca..102fd08 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2007-05-12 Alan Modra + + * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X. + 2007-05-11 Alan Modra * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 865e1c0..844eee6 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -78,6 +78,9 @@ static reloc_howto_type elf_howto_table[] = { HOWTO (R_SPU_REL32, 0, 2, 32, TRUE, 0, complain_overflow_dont, bfd_elf_generic_reloc, "SPU_REL32", FALSE, 0, 0xffffffff, TRUE), + HOWTO (R_SPU_ADDR16X, 0, 2, 16, FALSE, 7, complain_overflow_bitfield, + bfd_elf_generic_reloc, "SPU_ADDR16X", + FALSE, 0, 0x007fff80, FALSE), HOWTO (R_SPU_PPU32, 0, 2, 32, FALSE, 0, complain_overflow_dont, bfd_elf_generic_reloc, "SPU_PPU32", FALSE, 0, 0xffffffff, FALSE), diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 3169065..003ad9c 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,8 @@ +2007-05-12 Alan Modra + + * spu.h (R_SPU_ADDR16X): Define. + (R_SPU_PPU32, R_SPU_PPU64): Renumber. + 2007-05-11 Alan Modra * spu.h (R_SPU_PPU32, R_SPU_PPU64): Define. diff --git a/include/elf/spu.h b/include/elf/spu.h index 2ae80c5..ef94980 100644 --- a/include/elf/spu.h +++ b/include/elf/spu.h @@ -39,8 +39,9 @@ START_RELOC_NUMBERS (elf_spu_reloc_type) RELOC_NUMBER (R_SPU_ADDR10I, 11) RELOC_NUMBER (R_SPU_ADDR16I, 12) RELOC_NUMBER (R_SPU_REL32, 13) - RELOC_NUMBER (R_SPU_PPU32, 14) - RELOC_NUMBER (R_SPU_PPU64, 15) + RELOC_NUMBER (R_SPU_ADDR16X, 14) + RELOC_NUMBER (R_SPU_PPU32, 15) + RELOC_NUMBER (R_SPU_PPU64, 16) END_RELOC_NUMBERS (R_SPU_max) /* Program header extensions */