Re: [PATCH] crash: Fix extend command on s390x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Michael Holzheu" <holzheu@xxxxxxxxxxxxxxxxxx> wrote:

> When loading an extension on s390x, we get the error "xxx.so not an ELF
> format object file". Looks like the problem is a missing check in
> is_shared_object().
> 
> The following patch fixes the problem:
> ---
> diff -Naurp crash-4.0.9/symbols.c
> crash-4.0.9-fix-extend-s390x/symbols.c
> --- crash-4.0.9/symbols.c	2009-09-14 15:47:58.000000000 +0200
> +++ crash-4.0.9-fix-extend-s390x/symbols.c	2009-09-14
> 15:48:04.000000000 +0200
> @@ -2723,6 +2723,10 @@ is_shared_object(char *file)
>  			if (machine_type("X86_64")) 
>  				return TRUE;
>  			break;
> +		case EM_S390:
> +			if (machine_type("S390X"))
> +				return TRUE;
> +			break;
>  		}
>  
>  		if (CRASHDEBUG(1))

Mea culpa.

Queued for the next release.

Thanks,
  Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux