This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH ARC 4/5] Fix to pass ld-elf-ehdr_start-shared


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]