[PATCH] hppa*-*-hpux*: Fix objcopy --reverse-bytes on SOM target

Alan Modra amodra@gmail.com
Thu Aug 27 06:55:19 GMT 2020


On Mon, Aug 24, 2020 at 05:00:32PM -0400, John David Anglin wrote:
> +    # Gotta quote dollar-signs because they get mangled by the
> +    # shell otherwise.  Since get_standard_section_names returns
> +    # quoted section names, we first remove the original quote
> +    # and then requote.
> +    regsub -all "\\\\\\$" "$progargs" "$" progargs
> +    regsub -all "\\\$" "$progargs" "\\$" progargs
> +

My eyes!  I think you should be able to remove a level of quoting here
by using curly braces.  Please double check that the following works,
and if so commit with this change.

    regsub -all {\\\$} "$progargs" {$} progargs
    regsub -all {\$} "$progargs" {\$} progargs

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list