This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: PR ld/5530: Linux/ia64 linker is broken
- From: "H.J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: nickc at redhat dot com
- Date: Mon, 31 Dec 2007 11:22:48 -0800
- Subject: PATCH: PR ld/5530: Linux/ia64 linker is broken
I am checking in this patch as an obvious fix.
H.J.
----
2007-12-31 H.J. Lu <hongjiu.lu@intel.com>
PR ld/5530
* elfxx-ia64.c (elfNN_ia64_relocate_section): Call
_bfd_elf_find_segment_containing_section with output_bfd,
instead of input_bfd.
--- ./elfxx-ia64.c.find 2007-12-31 11:04:02.000000000 -0800
+++ ./elfxx-ia64.c 2007-12-31 11:11:02.000000000 -0800
@@ -4897,7 +4897,7 @@ elfNN_ia64_relocate_section (bfd *output
{
/* Find the segment that contains the output_section. */
Elf_Internal_Phdr *p = _bfd_elf_find_segment_containing_section
- (input_bfd, input_section->output_section);
+ (output_bfd, input_section->output_section);
if (p == NULL)
{