GNU Binutils with patches for OS216
Revision | 1e4d2a179d04d08bf113706939dd502c46301261 (tree) |
---|---|
Zeit | 2018-01-13 04:12:55 |
Autor | Eric Christopher <echristo@gmai...> |
Commiter | Eric Christopher |
2018-01-12 Eric Christopher <echristo@gmail.com>
Apply from master:
2018-01-12 Sterling Augustine <saugustine@google.com>
@@ -1,3 +1,11 @@ | ||
1 | +2018-01-12 Eric Christopher <echristo@gmail.com> | |
2 | + | |
3 | + Apply from master: | |
4 | + 2018-01-12 Sterling Augustine <saugustine@google.com> | |
5 | + | |
6 | + * cref.cc (Cref_inputs::Cref_table_compare::operator): Add | |
7 | + conditionals and calls to is_forwarder. | |
8 | + | |
1 | 9 | 2017-11-21 Ian Lance Taylor <iant@google.com> |
2 | 10 | |
3 | 11 | Apply from master: |
@@ -236,9 +236,13 @@ Cref_inputs::Cref_table_compare::operator()(const Symbol* s1, | ||
236 | 236 | } |
237 | 237 | |
238 | 238 | // We should never have two different symbols with the same name and |
239 | - // version. | |
239 | + // version, where one doesn't forward to the other. | |
240 | 240 | if (s1 == s2) |
241 | 241 | return false; |
242 | + if (s1->is_forwarder() && !s2->is_forwarder()) | |
243 | + return true; | |
244 | + if (!s1->is_forwarder() && s2->is_forwarder()) | |
245 | + return false; | |
242 | 246 | gold_unreachable(); |
243 | 247 | } |
244 | 248 |