[PATCH] Fix tekhex format related gdb.base/dump.exp failures

Alan Modra amodra@gmail.com
Mon Aug 25 05:08:48 GMT 2025


On Sat, Aug 23, 2025 at 11:09:52PM -0700, Kevin Buettner wrote:
> diff --git a/bfd/tekhex.c b/bfd/tekhex.c
> index 7e4e698efd6..4ac61166d0e 100644
> --- a/bfd/tekhex.c
> +++ b/bfd/tekhex.c
> @@ -655,7 +655,7 @@ move_section_contents (bfd *abfd,
>  	{
>  	  /* Different chunk, so move pointer. */
>  	  d = find_chunk (abfd, chunk_number, must_write);
> -	  if (!d)
> +	  if (!d && must_write)
>  	    return false;
>  	  prev_number = chunk_number;
>  	}

OK, thanks.  (I certainly wouldn't complain if you said this was an
obvious patch, and just committed it.)

-- 
Alan Modra


More information about the Binutils mailing list