[PATCH] elfedit: Pass osabi to reconcat
Alan Modra
amodra@gmail.com
Wed Dec 30 03:10:00 GMT 2020
On Tue, Dec 29, 2020 at 10:39:57AM -0800, H.J. Lu wrote:
> I checked in this.
>
> diff --git a/binutils/elfedit.c b/binutils/elfedit.c
> index dc2f722d38..e54011c9a8 100644
> --- a/binutils/elfedit.c
> +++ b/binutils/elfedit.c
> @@ -902,7 +902,7 @@ usage (FILE *stream, int exit_status)
> char *osabi = concat (osabis[0].name, NULL);
>
> for (i = 1; i < ARRAY_SIZE (osabis); i++)
> - osabi = reconcat (osabi, "|", osabis[i].name, NULL);
> + osabi = reconcat (osabi, osabi, "|", osabis[i].name, NULL);
>
> fprintf (stream, _("Usage: %s <option(s)> elffile(s)\n"),
> program_name);
>
Thanks!
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list