From: rich@id.slip.bcm.tmc.edu.cdrom.com (Rich Murphey)
ld won't generate output if there are two .o files with the same name. It thinks they are multiply defined external references. This patch explictly allows multiple /file names/ with the same value. This can happen if you do a two stage link or if you link in file names that are identical to files in libc. Otherwise ld.c exits with a status=1 and non error message. Rich
This commit is contained in:
parent
cfd895c81e
commit
3c7e1b8cc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=385
@ -2447,7 +2447,8 @@ digest_symbols ()
|
||||
}
|
||||
set_vectors[setv_fill_count++] = p->n_value;
|
||||
}
|
||||
else if ((type & N_EXT) && type != (N_UNDF | N_EXT))
|
||||
else if ((type & N_EXT) && type != (N_UNDF | N_EXT)
|
||||
&& (type & N_TYPE) != N_FN)
|
||||
{
|
||||
/* non-common definition */
|
||||
if (defs++ && sp->value != p->n_value)
|
||||
|
Loading…
Reference in New Issue
Block a user