This is the mail archive of the binutils-cvs@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]

[binutils-gdb] [ARC] Fix to pass ld-elf-ehdr_start-shared.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b3aee8396f02744c0b688d0ee75c585534b7e8c4

commit b3aee8396f02744c0b688d0ee75c585534b7e8c4
Author: Claudiu Zissulescu <claziss@synopsys.com>
Date:   Tue Apr 5 17:14:03 2016 +0200

    [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

Diff:
---
 bfd/ChangeLog   | 4 ++++
 bfd/elf32-arc.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4fcb108..d8a4fef 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
 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.
 	(get_replace_function): Created.:
 	(struct arc_relocation_data): Changed to signed types.
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)


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