X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Felf32-dlx.c;h=802030697e4598e9d953fd450cc5c53c32176258;hb=92f402a7e03f5d747bc9a09c8da2f61cc539ac33;hp=7ff1fe154e5aa47b13ecf6fe72daed583920ff3c;hpb=0e1862bb401f47716446aef143b2bf7a4563f541;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-dlx.c b/bfd/elf32-dlx.c index 7ff1fe154e..802030697e 100644 --- a/bfd/elf32-dlx.c +++ b/bfd/elf32-dlx.c @@ -1,5 +1,5 @@ /* DLX specific support for 32-bit ELF - Copyright (C) 2002-2015 Free Software Foundation, Inc. + Copyright (C) 2002-2017 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -23,6 +23,7 @@ #include "libbfd.h" #include "elf-bfd.h" #include "elf/dlx.h" +#include "elf32-dlx.h" #define USE_REL 1 @@ -40,8 +41,6 @@ static int skip_dlx_elf_hi16_reloc = 0; -extern int set_dlx_skip_hi16_flag (int); - int set_dlx_skip_hi16_flag (int flag) { @@ -138,8 +137,9 @@ elf32_dlx_relocate16 (bfd *abfd, /* Can not support a long jump to sections other then .text. */ if (strcmp (input_section->name, symbol->section->output_section->name) != 0) { - (*_bfd_error_handler) (_("BFD Link Error: branch (PC rel16) to section (%s) not supported"), - symbol->section->output_section->name); + _bfd_error_handler + (_("BFD Link Error: branch (PC rel16) to section (%s) not supported"), + symbol->section->output_section->name); return bfd_reloc_undefined; } @@ -200,8 +200,9 @@ elf32_dlx_relocate26 (bfd *abfd, /* Can not support a long jump to sections other then .text */ if (strcmp (input_section->name, symbol->section->output_section->name) != 0) { - (*_bfd_error_handler) (_("BFD Link Error: jump (PC rel26) to section (%s) not supported"), - symbol->section->output_section->name); + _bfd_error_handler + (_("BFD Link Error: jump (PC rel26) to section (%s) not supported"), + symbol->section->output_section->name); return bfd_reloc_undefined; } @@ -450,10 +451,6 @@ elf32_dlx_check_relocs (bfd *abfd, while (h->root.type == bfd_link_hash_indirect || h->root.type == bfd_link_hash_warning) h = (struct elf_link_hash_entry *) h->root.u.i.link; - - /* PR15323, ref flags aren't set for references in the same - object. */ - h->root.non_ir_ref = 1; } switch (ELF32_R_TYPE (rel->r_info))