This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH ARC 4/5] Fix to pass ld-elf-ehdr_start-shared
- From: Cupertino Miranda <Cupertino dot Miranda at synopsys dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>, Francois Bedard <Francois dot Bedard at synopsys dot com>
- Date: Mon, 4 Apr 2016 12:50:45 +0000
- Subject: [PATCH ARC 4/5] Fix to pass ld-elf-ehdr_start-shared
- Authentication-results: sourceware.org; auth=none
Hi all,
Please review.
Fixed condition responsible for "ld-elf-ehdr_start-shared" test fail.
Best regards,
Cupertino
bfd/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
elf32-arc.c (elf_arc_check_relocs): Changed.
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index e25e9ba..e369e20 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -1736,7 +1736,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)
--
1.9.1