[PATCH] Don't look up a stub for an undefined symbol.

Cary Coutant ccoutant@gmail.com
Thu Jun 8 00:36:00 GMT 2017


> 2017-06-07  Eric Christopher  <echristo@gmail.com>
>
>         * aarch64.cc (maybe_apply_stub): Add debug logging for looking
>         up stubs to undefined symbols and early return rather than
>         fail to look them up.
> (scan_reloc_for_stub): Add debug logging for no stub creation
>         for undefined symbols.

+  // We don't create stubs for undefined symbols so don't look for one.
+  if (gsym && gsym->is_undefined()) {
+    gold_debug(DEBUG_TARGET,
+               "stub: looking for a stub for undefined symbol: %s",
+               gsym->name());
+    return false;
+  }

The braces here aren't Gnu style. Fix that, and it's OK to apply. Thanks!

-cary



More information about the Binutils mailing list