shithub: scc

Download patch

ref: 7c45822bbc135e3a3a1c4466a7821e40749f3ba6
parent: d69fcbb76aac150d3e8a2fef26ef405010e5f4f5
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Mar 31 07:31:03 EDT 2019

[ld] Don't use toupper() in rebase()

Rebase() was expecting upper case and lower case in the
symbol type, but we had a toupper() in the switch clause.

--- a/src/cmd/ld/pass3.c
+++ b/src/cmd/ld/pass3.c
@@ -13,7 +13,7 @@
 	Objsym *sym;
 
 	for (sym = obj->syms; sym; sym = sym->next) {
-		switch (toupper(sym->type)) {
+		switch (sym->type) {
 		case 'T':
 		case 'D':
 		case 'B':