Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/gnu/usr.bin/ld/ld Pull up revision 1.23 (requested by m...
details: https://anonhg.NetBSD.org/src/rev/97cc3d0b5011
branches: netbsd-1-5
changeset: 490427:97cc3d0b5011
user: jhawk <jhawk%NetBSD.org@localhost>
date: Tue Dec 26 01:20:23 2000 +0000
description:
Pull up revision 1.23 (requested by mycroft):
Correct various problems with argument parsing for --whole-archive and
--no-whole-archive. Fully implement --no-whole-archive. Remove spurious
warning for -Bshareable.
diffstat:
gnu/usr.bin/ld/ld/lib.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r c6758408e937 -r 97cc3d0b5011 gnu/usr.bin/ld/ld/lib.c
--- a/gnu/usr.bin/ld/ld/lib.c Tue Dec 26 01:20:01 2000 +0000
+++ b/gnu/usr.bin/ld/ld/lib.c Tue Dec 26 01:20:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.c,v 1.22 2000/01/13 00:05:32 mycroft Exp $ */
+/* $NetBSD: lib.c,v 1.22.2.1 2000/12/26 01:20:23 jhawk Exp $ */
/*
* - library routines
@@ -48,7 +48,7 @@
register char *name;
register struct file_entry *subentry;
- if (!(link_mode & FORCEARCHIVE) && !undefined_global_sym_count)
+ if (!(entry->flags & E_FORCE_ARCHIVE) && !undefined_global_sym_count)
return;
/* Examine its first member, which starts SARMAG bytes in. */
@@ -240,7 +240,7 @@
*/
for (i = 0; (i < nsymdefs &&
- ((link_mode & FORCEARCHIVE) ||
+ ((entry->flags & E_FORCE_ARCHIVE) ||
undefined_global_sym_count ||
common_defined_global_count)); i++) {
@@ -276,7 +276,7 @@
* archive members to be searched for definitions
* satisfying undefined shared object symbols.
*/
- if (!(link_mode & FORCEARCHIVE) &&
+ if (!(entry->flags & E_FORCE_ARCHIVE) &&
(!sp || sp->defined ||
(!(sp->flags & GS_REFERENCED) &&
!sp->sorefs)))
@@ -314,7 +314,7 @@
* load.
*/
- if (!(link_mode & FORCEARCHIVE) &&
+ if (!(entry->flags & E_FORCE_ARCHIVE) &&
!subfile_wanted_p(subentry)) {
if (subentry->symbols)
free(subentry->symbols);
@@ -377,7 +377,7 @@
struct file_entry *prev = 0;
int this_subfile_offset = SARMAG;
- while ((link_mode & FORCEARCHIVE) ||
+ while ((entry->flags & E_FORCE_ARCHIVE) ||
undefined_global_sym_count || common_defined_global_count) {
int member_length;
@@ -394,7 +394,7 @@
subentry->strings = (char *)malloc(subentry->string_size);
read_entry_strings(fd, subentry);
- if (!(link_mode & FORCEARCHIVE) &&
+ if (!(entry->flags & E_FORCE_ARCHIVE) &&
!subfile_wanted_p(subentry)) {
if (subentry->symbols)
free(subentry->symbols);
Home |
Main Index |
Thread Index |
Old Index