[Rpm-maint] [PATCH] debugedit: handle RISC-V relocation

Panu Matilainen pmatilai at redhat.com
Fri Mar 9 14:21:56 UTC 2018


On 03/05/2018 01:01 PM, Andreas Schwab wrote:
> ---
>   tools/debugedit.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/tools/debugedit.c b/tools/debugedit.c
> index e0b1d98d99..57cd83030f 100644
> --- a/tools/debugedit.c
> +++ b/tools/debugedit.c
> @@ -1947,6 +1947,12 @@ edit_dwarf2 (DSO *dso)
>   		  if (rtype != R_68K_32)
>   		    goto fail;
>   		  break;
> +#if defined(EM_RISCV) && defined(R_RISCV_32)
> +		case EM_RISCV:
> +		  if (rtype != R_RISCV_32)
> +		    goto fail;
> +		  break;
> +#endif
>   		default:
>   		fail:
>   		  error (1, 0, "%s: Unhandled relocation %d in .debug_info section",
> 

Yup, already applied by ffesti:
https://github.com/rpm-software-management/rpm/commit/86ec4c03de2b7cc6af6ba5b10dd686002e0b588c

Thanks for the patch,

	- Panu -


More information about the Rpm-maint mailing list