From: Claudiu Zissulescu Date: Tue, 5 Apr 2016 15:14:03 +0000 (+0200) Subject: [ARC] Fix to pass ld-elf-ehdr_start-shared. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3aee8396f02744c0b688d0ee75c585534b7e8c4;p=binutils-gdb.git [ARC] Fix to pass ld-elf-ehdr_start-shared. bfd/ 2016-04-05 Cupertino Miranda * elf32-arc.c (elf_arc_check_relocs): Changed --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4fcb1080d49..d8a4fef0291 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-04-05 Cupertino Miranda + + * elf32-arc.c (elf_arc_check_relocs): Changed + 2016-04-05 Cupertino Miranda * elf32-arc.c (name_for_global_symbol): Changed assert. diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 6facd920878..0a4f4807e04 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -1735,7 +1735,8 @@ elf_arc_check_relocs (bfd * abfd, non-readonly sections. */ if (bfd_link_dll (info) && !bfd_link_pie (info) && (sec->flags & SEC_ALLOC) != 0 - && (sec->flags & SEC_READONLY) != 0) + && (sec->flags & SEC_READONLY) == 0 + && (sec->flags & SEC_CODE) != 0) { const char *name; if (h)