commit 7c45822bbc135e3a3a1c4466a7821e40749f3ba6
parent d69fcbb76aac150d3e8a2fef26ef405010e5f4f5
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':