From: Florian Weimer Date: Fri, 1 Dec 2017 14:00:16 +0000 (+0000) Subject: Fix BZ 1519165 - functions with specific assembler names (aarch64 addition) X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=4e24401d32226517f0df8c45fcda401ba0acb676;p=annobin.git Fix BZ 1519165 - functions with specific assembler names (aarch64 addition) --- diff --git a/plugin/aarch64.annobin.cc b/plugin/aarch64.annobin.cc index ce06b1c..b88ea59 100644 --- a/plugin/aarch64.annobin.cc +++ b/plugin/aarch64.annobin.cc @@ -45,9 +45,11 @@ annobin_target_specific_function_notes (void) annobin_inform (1, "TLS dialect has changed from %d to %d for %s", saved_tls_dialect, aarch64_tls_dialect, current_function_name ()); - annobin_output_numeric_note (GNU_BUILD_ATTRIBUTE_ABI, aarch64_tls_dialect, - "numeric: ABI: TLS dialect", current_function_name (), - NT_GNU_BUILD_ATTRIBUTE_FUNC); + const char *name = function_asm_name (); + if (name != NULL) + annobin_output_numeric_note (GNU_BUILD_ATTRIBUTE_ABI, aarch64_tls_dialect, + "numeric: ABI: TLS dialect", name, + NT_GNU_BUILD_ATTRIBUTE_FUNC); } typedef struct