[Crash-utility] [PATCH] Fix for failure when using extensions on PPC64 target x86_64 binary

Arun Easi aeasi.linux at gmail.com
Fri Sep 25 16:59:28 UTC 2020


Thanks Hagio. I am ok with the tag.

On Thu, Sep 24, 2020 at 1:16 AM HAGIO KAZUHITO(萩尾 一仁) <k-hagio-ab at nec.com>
wrote:

> Without the patch, the "extend" command on an x86_64 binary that can
> be used to analyze ppc64le dumpfiles fails with the error meesage
> "extend: <path to extension>: not an ELF format object".
>
> Suggested-by: Arun Easi <aeasi.linux at gmail.com>
> Signed-off-by: Kazuhito Hagio <k-hagio-ab at nec.com>
> ---
> I'm not sure which tag I should use in this case, so if you want
> me to use another one e.g. Signed-off-by, please let me know.
>
>  symbols.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/symbols.c b/symbols.c
> index d22fb1d9bdd1..603946db4f34 100644
> --- a/symbols.c
> +++ b/symbols.c
> @@ -3868,7 +3868,8 @@ is_shared_object(char *file)
>                         break;
>
>                 case EM_X86_64:
> -                       if (machine_type("X86_64") ||
> machine_type("ARM64"))
> +                       if (machine_type("X86_64") ||
> machine_type("ARM64") ||
> +                           machine_type("PPC64"))
>                                 return TRUE;
>                         break;
>
> --
> 1.8.3.1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20200925/08e81cd1/attachment.htm>


More information about the Crash-utility mailing list