Fix ld --gc-section segfault with ARMv8-M entry function in absolute section
[deliverable/binutils-gdb.git] / bfd / elf32-sh-symbian.c
index 85c26f357f8da7b531855e2a8e67e263c6d60767..58c607a84cb34812aa9637e59c52ba17852563c3 100644 (file)
@@ -1,6 +1,5 @@
 /* Renesas / SuperH specific support for Symbian 32-bit ELF files
-   Copyright 2004, 2005, 2006, 2007, 2008
-   Free Software Foundation, Inc.
+   Copyright (C) 2004-2016 Free Software Foundation, Inc.
    Contributed by Red Hat
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -433,7 +432,7 @@ sh_symbian_relocate_section (bfd *                  output_bfd,
                             asection **            local_sections)
 {
   /* When performing a final link we implement the IMPORT AS directives.  */
-  if (!info->relocatable)
+  if (!bfd_link_relocatable (info))
     {
       Elf_Internal_Rela *            rel;
       Elf_Internal_Rela *            relend;
@@ -602,7 +601,7 @@ sh_symbian_relocate_section (bfd *                  output_bfd,
                                  contents, relocs, local_syms, local_sections);
 }
 
-#define TARGET_LITTLE_SYM      bfd_elf32_shl_symbian_vec
+#define TARGET_LITTLE_SYM      sh_elf32_symbian_le_vec
 #define TARGET_LITTLE_NAME      "elf32-shl-symbian"
 
 #undef  elf_backend_relocate_section
This page took 0.025289 seconds and 4 git commands to generate.