Never again shall we link libgcc dynamic. It was a big mistake in the
first place and we were too long in finding out. Now we know, and the damage is hard to fix. This is part one: ld will not link gcc dynamic, if specified as "-lgcc". Suggested by: dyson & davidg
This commit is contained in:
parent
30f467d84a
commit
316f7f7725
@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91";
|
||||
Set, indirect, and warning symbol features added by Randy Smith. */
|
||||
|
||||
/*
|
||||
* $Id: ld.c,v 1.23 1994/12/23 22:30:37 nate Exp $
|
||||
* $Id: ld.c,v 1.24 1995/03/04 17:46:05 nate Exp $
|
||||
*/
|
||||
|
||||
/* Define how to initialize system-dependent header fields. */
|
||||
@ -545,7 +545,16 @@ decode_command(argc, argv)
|
||||
p->filename = string;
|
||||
p->local_sym_name = concat("-l", string, "");
|
||||
p->flags |= E_SEARCH_DIRS;
|
||||
if (link_mode & DYNAMIC && !relocatable_output)
|
||||
/*
|
||||
* XXX: We don't want to link libgcc dynamic,
|
||||
* it was a big mistake, and now we have to get
|
||||
* people to stop doing it gracefully
|
||||
* When all libgcc.so's in the world have been
|
||||
* killed, this can go away.
|
||||
*/
|
||||
if (!strcmp(string,"gcc"))
|
||||
;
|
||||
else if (link_mode & DYNAMIC && !relocatable_output)
|
||||
p->flags |= E_SEARCH_DYNAMIC;
|
||||
p++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user