Commit 1e93125a authored by Austin Clements's avatar Austin Clements

cmd/ld: clean up nested if when loading bind local syms

Change-Id: I15269722ca3d2654a9dd7a3f8a89ad375dc9bee0
Reviewed-on: https://go-review.googlesource.com/1759Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 45eaf500
...@@ -825,7 +825,11 @@ readsym(ElfObj *obj, int i, ElfSym *sym, int needSym) ...@@ -825,7 +825,11 @@ readsym(ElfObj *obj, int i, ElfSym *sym, int needSym)
} }
break; break;
case ElfSymBindLocal: case ElfSymBindLocal:
if(!(thechar == '5' && (strncmp(sym->name, "$a", 2) == 0 || strncmp(sym->name, "$d", 2) == 0))) // binutils for arm generate these mapping symbols, ignore these if(thechar == '5' && (strncmp(sym->name, "$a", 2) == 0 || strncmp(sym->name, "$d", 2) == 0)) {
// binutils for arm generate these mapping
// symbols, ignore these
break;
}
if(needSym) { if(needSym) {
// local names and hidden visiblity global names are unique // local names and hidden visiblity global names are unique
// and should only reference by its index, not name, so we // and should only reference by its index, not name, so we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment