[PATCH] readelf: Report if no GOT section found

Jan Beulich jbeulich@suse.com
Tue Sep 2 06:01:23 GMT 2025


On 01.09.2025 20:00, H.J. Lu wrote:
> @@ -21123,6 +21127,15 @@ process_got_section_contents (Filedata * filedata)
>        }
>  
>   out:
> +  if (! found)
> +    {
> +      if (filedata->is_separate)
> +	printf (_("\nThere is no GOT section in linked file '%s'.\n"),
> +		filedata->file_name);
> +      else
> +	printf (_("\nThere is no GOT section in this file.\n"));
> +    }

I think that no such warning should appear when --got-contents wasn't used,
but was implied from --all.

Jan


More information about the Binutils mailing list