1
1
/* BFD back-end for Motorola MCore COFF/PE
2
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
2
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3
3
Free Software Foundation, Inc.
5
This file is part of BFD, the Binary File Descriptor library.
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
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, 51 Franklin Street - Fifth Floor,
20
Boston, MA 02110-1301, USA. */
5
This file is part of BFD, the Binary File Descriptor library.
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
9
the Free Software Foundation; either version 3 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, 51 Franklin Street - Fifth Floor,
20
Boston, MA 02110-1301, USA. */
24
24
#include "libbfd.h"
25
25
#include "coff/mcore.h"
26
26
#include "coff/internal.h"
288
static reloc_howto_type *
289
mcore_coff_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
295
i < (sizeof (mcore_coff_howto_table)
296
/ sizeof (mcore_coff_howto_table[0]));
298
if (mcore_coff_howto_table[i].name != NULL
299
&& strcasecmp (mcore_coff_howto_table[i].name, r_name) == 0)
300
return &mcore_coff_howto_table[i];
289
305
#define RTYPE2HOWTO(cache_ptr, dst) \
290
306
(cache_ptr)->howto = mcore_coff_howto_table + (dst)->r_type;
538
554
/* We use the special COFF backend linker, with our own special touch. */
540
556
#define coff_bfd_reloc_type_lookup mcore_coff_reloc_type_lookup
557
#define coff_bfd_reloc_name_lookup mcore_coff_reloc_name_lookup
541
558
#define coff_relocate_section coff_mcore_relocate_section
542
559
#define coff_rtype_to_howto coff_mcore_rtype_to_howto