aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-arc.c
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2016-04-05 17:14:03 +0200
committerClaudiu Zissulescu <claziss@synopsys.com>2016-04-05 17:14:03 +0200
commitb3aee8396f02744c0b688d0ee75c585534b7e8c4 (patch)
treeb45f62ed94f4f70243a6e367a80abd331baefb55 /bfd/elf32-arc.c
parent094fb06395d03ac343d1ce14a3621d1b4f78a0cc (diff)
downloadgdb-b3aee8396f02744c0b688d0ee75c585534b7e8c4.zip
gdb-b3aee8396f02744c0b688d0ee75c585534b7e8c4.tar.gz
gdb-b3aee8396f02744c0b688d0ee75c585534b7e8c4.tar.bz2
[ARC] Fix to pass ld-elf-ehdr_start-shared.
bfd/ 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com> * elf32-arc.c (elf_arc_check_relocs): Changed
Diffstat (limited to 'bfd/elf32-arc.c')
-rw-r--r--bfd/elf32-arc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 6facd92..0a4f480 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)