| OLD | NEW |
| 1 /* Xilinx MicroBlaze-specific support for 32-bit ELF | 1 /* Xilinx MicroBlaze-specific support for 32-bit ELF |
| 2 | 2 |
| 3 Copyright 2009, 2010, 2011 Free Software Foundation, Inc. | 3 Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of BFD, the Binary File Descriptor library. | 5 This file is part of BFD, the Binary File Descriptor library. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 GNU General Public License for more details. | 15 GNU General Public License for more details. |
| 16 | 16 |
| 17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
| 18 along with this program; if not, write to the | 18 along with this program; if not, write to the |
| 19 Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, | 19 Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
| 20 Boston, MA 02110-1301, USA. */ | 20 Boston, MA 02110-1301, USA. */ |
| 21 | 21 |
| 22 | 22 |
| 23 int dbg = 0; | 23 int dbg = 0; |
| 24 | 24 |
| 25 #include "sysdep.h" |
| 25 #include "bfd.h" | 26 #include "bfd.h" |
| 26 #include "sysdep.h" | |
| 27 #include "bfdlink.h" | 27 #include "bfdlink.h" |
| 28 #include "libbfd.h" | 28 #include "libbfd.h" |
| 29 #include "elf-bfd.h" | 29 #include "elf-bfd.h" |
| 30 #include "elf/microblaze.h" | 30 #include "elf/microblaze.h" |
| 31 #include <assert.h> | 31 #include <assert.h> |
| 32 | 32 |
| 33 #define USE_RELA /* Only USE_REL is actually significant, but this is | 33 #define USE_RELA /* Only USE_REL is actually significant, but this is |
| 34 here are a reminder... */ | 34 here are a reminder... */ |
| 35 #define INST_WORD_SIZE 4 | 35 #define INST_WORD_SIZE 4 |
| 36 | 36 |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 /* Sanity check the address. */ | 829 /* Sanity check the address. */ |
| 830 if (offset > bfd_get_section_limit (input_bfd, input_section)) | 830 if (offset > bfd_get_section_limit (input_bfd, input_section)) |
| 831 { | 831 { |
| 832 r = bfd_reloc_outofrange; | 832 r = bfd_reloc_outofrange; |
| 833 goto check_reloc; | 833 goto check_reloc; |
| 834 } | 834 } |
| 835 | 835 |
| 836 switch ((int) r_type) | 836 switch ((int) r_type) |
| 837 { | 837 { |
| 838 case (int) R_MICROBLAZE_SRO32 : | 838 case (int) R_MICROBLAZE_SRO32 : |
error: old chunk mismatch |
None
| OLD | NEW |