From: Alan Modra <amodra@bigpond.net.au>
To: binutils@sources.redhat.com
Subject: Re: IA64 linker is totally broken (Re: PATCH: ELF linker is broken)
Date: Wed, 02 Feb 2005 01:37:00 -0000 [thread overview]
Message-ID: <20050202013742.GW11595@bubble.modra.org> (raw)
In-Reply-To: <20050202011206.GV11595@bubble.modra.org>
This one too.
Index: bfd/ChangeLog
===================================================================
RCS file: /cvs/src/src/bfd/ChangeLog,v
retrieving revision 1.2879
diff -u -p -r1.2879 ChangeLog
--- bfd/ChangeLog 2 Feb 2005 01:16:30 -0000 1.2879
+++ bfd/ChangeLog 2 Feb 2005 01:36:37 -0000
@@ -2,6 +2,7 @@
* elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
everything, just the field specific to ia64.
+ * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
2005-02-01 Alan Modra <amodra@bigpond.net.au>
Index: bfd/elf64-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-hppa.c,v
retrieving revision 1.52
diff -u -p -r1.52 elf64-hppa.c
--- bfd/elf64-hppa.c 10 Oct 2004 13:58:05 -0000 1.52
+++ bfd/elf64-hppa.c 2 Feb 2005 01:36:39 -0000
@@ -1,5 +1,5 @@
/* Support for HPPA 64-bit ELF
- Copyright 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -305,14 +305,15 @@ elf64_hppa_new_dyn_hash_entry (entry, ta
if (!ret)
return 0;
- /* Initialize our local data. All zeros, and definitely easier
- than setting 8 bit fields. */
- memset (ret, 0, sizeof (*ret));
-
/* Call the allocation method of the superclass. */
ret = ((struct elf64_hppa_dyn_hash_entry *)
bfd_hash_newfunc ((struct bfd_hash_entry *) ret, table, string));
+ /* Initialize our local data. All zeros. */
+ memset (&ret->dlt_offset, 0,
+ (sizeof (struct elf64_hppa_dyn_hash_entry)
+ - offsetof (struct elf64_hppa_dyn_hash_entry, dlt_offset)));
+
return &ret->root;
}
--
Alan Modra
IBM OzLabs - Linux Technology Centre
next prev parent reply other threads:[~2005-02-02 1:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 19:22 IA64 linker is broken H. J. Lu
2005-01-31 0:02 ` Alan Modra
2005-01-31 7:13 ` Alan Modra
2005-01-31 8:29 ` Alan Modra
2005-01-31 18:38 ` H. J. Lu
2005-01-31 21:22 ` ELF " H. J. Lu
2005-01-31 22:02 ` PATCH: " H. J. Lu
2005-02-01 0:08 ` Alan Modra
2005-02-01 5:56 ` IA64 linker is totally broken (Re: PATCH: ELF linker is broken) H. J. Lu
2005-02-01 6:18 ` H. J. Lu
2005-02-01 7:16 ` Alan Modra
2005-02-01 22:46 ` H. J. Lu
2005-02-01 23:57 ` Alan Modra
2005-02-02 0:39 ` H. J. Lu
2005-02-02 1:12 ` Alan Modra
2005-02-02 1:37 ` Alan Modra [this message]
2005-02-02 2:23 ` H. J. Lu
2005-01-31 23:16 ` ELF linker is broken Alan Modra
2005-02-01 1:41 ` IA64 " Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050202013742.GW11595@bubble.modra.org \
--to=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).