[PATCH] bfd/nds32: remove unused got_size variable
Simon Marchi
simon.marchi@efficios.com
Tue Nov 10 19:47:42 GMT 2026
On 11/9/26 11:51 PM, Alan Modra wrote:
> On Fri, Oct 30, 2026 at 11:00:32AM -0400, Simon Marchi wrote:
>> Building bfd with a recent clang fails with:
>>
>> /home/smarchi/src/binutils-gdb/bfd/elf32-nds32.c:154:13: error: variable 'got_size' set but not used [-Werror,-Wunused-but-set-global]
>>
>> The variable has been unused since it was introduced by commit
>> 35c081572f32 ("Add support for Andes NDS32:", 2013-12-13). Remove it,
>> along with the comment that describes it. The branches handling the
>> .got and .got.plt sections in nds32_elf_late_size_sections become
>> empty, merge them with the one handling .plt.
>
> OK.
>
> --
> Alan Modra
Thanks, pushed.
Simon
More information about the Binutils
mailing list