* remove unused field of struct bfd_link_hash_entry
@ 2011-05-15 23:44 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2011-05-15 23:44 UTC (permalink / raw)
To: binutils
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-15 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-15 23:44 remove unused field of struct bfd_link_hash_entry Alan Modra
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).