From: Alan Modra <amodra@gmail.com>
To: binutils@sourceware.org
Subject: remove unused field of struct bfd_link_hash_entry
Date: Sun, 15 May 2011 23:44:00 -0000 [thread overview]
Message-ID: <20110515234430.GB20800@bubble.grove.modra.org> (raw)
I added this field 2005-02-03 to support ld --as-needed then abandoned
that approach later.
include/
* bfdlink.h (struct bfd_link_hash_entry): Remove u.undef.weak field.
bfd/
* linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
Index: include/bfdlink.h
===================================================================
RCS file: /cvs/src/src/include/bfdlink.h,v
retrieving revision 1.85
diff -u -p -r1.85 bfdlink.h
--- include/bfdlink.h 25 Apr 2011 18:28:53 -0000 1.85
+++ include/bfdlink.h 15 May 2011 13:18:23 -0000
@@ -123,7 +123,6 @@ struct bfd_link_hash_entry
undefined symbol list. */
struct bfd_link_hash_entry *next;
bfd *abfd; /* BFD symbol was found in. */
- bfd *weak; /* BFD weak symbol was found in. */
} undef;
/* bfd_link_hash_defined, bfd_link_hash_defweak. */
struct
Index: bfd/linker.c
===================================================================
RCS file: /cvs/src/src/bfd/linker.c,v
retrieving revision 1.81
diff -u -p -r1.81 linker.c
--- bfd/linker.c 24 Apr 2011 10:02:13 -0000 1.81
+++ bfd/linker.c 15 May 2011 13:17:58 -0000
@@ -1640,7 +1640,6 @@ _bfd_generic_link_add_one_symbol (struct
/* Make a new weak undefined symbol. */
h->type = bfd_link_hash_undefweak;
h->u.undef.abfd = abfd;
- h->u.undef.weak = abfd;
break;
case CDEF:
--
Alan Modra
Australia Development Lab, IBM
reply other threads:[~2011-05-15 23:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20110515234430.GB20800@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=binutils@sourceware.org \
/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).