commit 69a6dd3cdb185af347d93e03f82e9f303575843f
parent 49ad9073f0ae0db7c459cba3e41dfccaa95c7abe
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 8 May 2026 09:54:28 +0200
ranlib: Ignore undefine references
When building an index of symbol definitions undefine
references don't help so much and with the current code
they were generating wrong redefinition errors.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/scc-ranlib.c b/src/cmd/scc-ranlib.c
@@ -89,7 +89,7 @@ newsymbol(Symbol *sym)
{
Symdef *np;
- if (!isupper(sym->type) || sym->type == 'N')
+ if (!isupper(sym->type) || sym->type == 'N' || sym->type == 'U')
return 1;
if ((np = lookup(sym->name)) == NULL) {