Revert "Fix relocation to look for symbols in local group"
This reverts commit fd2747bb585fc51b5ad56db09c0e9b66c7091a92.
Bug: 18222321
Bug: 18211780
Change-Id: I2d4ebab1e73b7277161af76b99f8249825b22d65
diff --git a/linker/linked_list.h b/linker/linked_list.h
index 72a32b4..4e62e20 100644
--- a/linker/linked_list.h
+++ b/linker/linked_list.h
@@ -86,7 +86,7 @@
}
template<typename F>
- void for_each(F action) const {
+ void for_each(F action) {
visit([&] (T* si) {
action(si);
return true;
@@ -94,7 +94,7 @@
}
template<typename F>
- bool visit(F action) const {
+ bool visit(F action) {
for (LinkedListEntry<T>* e = head_; e != nullptr; e = e->next) {
if (!action(e->element)) {
return false;