This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Don't generate DT_FLAGS for hppa64-linux
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Thu, 12 Dec 2013 13:47:19 -0800
- Subject: PATCH: Don't generate DT_FLAGS for hppa64-linux
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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)