mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
conditional statment to allow suppression of mismatched bank warning.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-08-02 Sean Keys <skeys@ipdatasys.com>
|
||||||
|
|
||||||
|
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
|
||||||
|
conditional statment to allow suppression of mismatched bank
|
||||||
|
warning.
|
||||||
|
|
||||||
2012-08-01 Alan Modra <amodra@gmail.com>
|
2012-08-01 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
|
* dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
|
||||||
|
@ -918,9 +918,11 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||||||
struct m68hc11_page_info *pinfo;
|
struct m68hc11_page_info *pinfo;
|
||||||
const struct elf_backend_data * const ebd = get_elf_backend_data (input_bfd);
|
const struct elf_backend_data * const ebd = get_elf_backend_data (input_bfd);
|
||||||
struct m68hc11_elf_link_hash_table *htab;
|
struct m68hc11_elf_link_hash_table *htab;
|
||||||
|
unsigned long e_flags;
|
||||||
|
|
||||||
symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
|
symtab_hdr = &elf_tdata (input_bfd)->symtab_hdr;
|
||||||
sym_hashes = elf_sym_hashes (input_bfd);
|
sym_hashes = elf_sym_hashes (input_bfd);
|
||||||
|
e_flags = elf_elfheader (input_bfd)->e_flags;
|
||||||
|
|
||||||
htab = m68hc11_elf_hash_table (info);
|
htab = m68hc11_elf_hash_table (info);
|
||||||
if (htab == NULL)
|
if (htab == NULL)
|
||||||
@ -1048,7 +1050,7 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||||||
a LO8XG. Does not actually check that it was a LO8XG.
|
a LO8XG. Does not actually check that it was a LO8XG.
|
||||||
Adjusts high and low bytes. */
|
Adjusts high and low bytes. */
|
||||||
relocation = phys_addr;
|
relocation = phys_addr;
|
||||||
if ((elf_elfheader (input_bfd)->e_flags & E_M68HC11_XGATE_RAMOFFSET)
|
if ((e_flags & E_M68HC11_XGATE_RAMOFFSET)
|
||||||
&& (relocation >= 0x2000))
|
&& (relocation >= 0x2000))
|
||||||
relocation += 0xc000; /* HARDCODED RAM offset for XGATE. */
|
relocation += 0xc000; /* HARDCODED RAM offset for XGATE. */
|
||||||
|
|
||||||
@ -1162,7 +1164,7 @@ elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
|
|||||||
|
|
||||||
if (m68hc11_addr_is_banked (pinfo, relocation + rel->r_addend)
|
if (m68hc11_addr_is_banked (pinfo, relocation + rel->r_addend)
|
||||||
&& m68hc11_addr_is_banked (pinfo, insn_addr)
|
&& m68hc11_addr_is_banked (pinfo, insn_addr)
|
||||||
&& phys_page != insn_page)
|
&& phys_page != insn_page && !(e_flags & E_M68HC11_NO_BANK_WARNING))
|
||||||
{
|
{
|
||||||
const char * msg;
|
const char * msg;
|
||||||
char * buf;
|
char * buf;
|
||||||
|
Reference in New Issue
Block a user