[PATCH] allow empty string as argument to -Map

Nick Clifton nickc@redhat.com
Fri Nov 6 14:38:30 GMT 2020


Hi Rasmus,

> So instead of the four different asprintf, I think you can just do
> 
>    percent[0] = 0;
>    res = asprintf(&new_name, "%s%s%s", config.map_filename,
> output_filename, percent[1] ? percent + 1 : ".map");
> 
> no?

Good point - I have applied the patch with this change made.

Cheers
   Nick




More information about the Binutils mailing list