commit 3af12e3574c581e794fc9d30e35b8d4fe243d12e
parent 72b972cb111d6e0469328a6134c1bad62e9a6880
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 31 Mar 2019 11:31:03 +0100
[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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/ld/pass3.c b/src/cmd/ld/pass3.c
@@ -13,7 +13,7 @@ rebase(Obj *obj)
Objsym *sym;
for (sym = obj->syms; sym; sym = sym->next) {
- switch (toupper(sym->type)) {
+ switch (sym->type) {
case 'T':
case 'D':
case 'B':