[ARC] Fix to pass ld-elf-ehdr_start-shared.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 15:14:03 +0000 (17:14 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Tue, 5 Apr 2016 15:14:03 +0000 (17:14 +0200)
bfd/
2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>

* elf32-arc.c (elf_arc_check_relocs): Changed

bfd/ChangeLog
bfd/elf32-arc.c

index 4fcb1080d49150cfd4a4dfceeafa0fa2024e01ad..d8a4fef029142148a327ffbc823c0af87d545c19 100644 (file)
@@ -1,3 +1,7 @@
+2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * elf32-arc.c (elf_arc_check_relocs): Changed
+
 2016-04-05  Cupertino Miranda  <cmiranda@synopsys.com>
 
        * elf32-arc.c (name_for_global_symbol): Changed assert.
index 6facd92087817c25292903fa4db6113a991e5903..0a4f4807e041ac8b99cfaf7ff0875c295ca9f374 100644 (file)
@@ -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)