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: Don't generate DT_FLAGS for hppa64-linux


elf64_hppa_size_dynamic_sections generates DT_FLAGS for Linux, which
isn't used on Linux.  This patch avoids it.  It fixes ld-elf/now-3.d
failure for hppa64-linux.  OK to install?

Thanks.

H.J.
---
2013-12-12  H.J. Lu  <hongjiu.lu@intel.com>

	* elf64-hppa.c (elf64_hppa_size_dynamic_sections): Don't
	generate DT_FLAGS for Linux.

diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index c992563..337b1ca 100644
--- a/bfd/elf64-hppa.c
+++ b/bfd/elf64-hppa.c
@@ -1867,7 +1867,8 @@ elf64_hppa_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
 
       /* Force DT_FLAGS to always be set.
 	 Required by HPUX 11.00 patch PHSS_26559.  */
-      if (!add_dynamic_entry (DT_FLAGS, (info)->flags))
+      if (strcmp (bfd_get_target (output_bfd), "elf64-hppa-linux") != 0
+	  && !add_dynamic_entry (DT_FLAGS, (info)->flags))
 	return FALSE;
 
       if (plt)


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