mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 05:52:21 +08:00
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
This commit is contained in:
@ -1274,8 +1274,6 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto,
|
||||
&& ELF_ST_VISIBILITY (h->other) != STV_HIDDEN
|
||||
&& h->plt.offset != (bfd_vma) -1)
|
||||
{
|
||||
asection * splt;
|
||||
|
||||
splt = bfd_get_section_by_name (dynobj, ".plt");
|
||||
|
||||
value = (splt->output_section->vma
|
||||
@ -1297,8 +1295,6 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto,
|
||||
&& ELF_ST_VISIBILITY (h->other) != STV_HIDDEN
|
||||
&& h->plt.offset != (bfd_vma) -1)
|
||||
{
|
||||
asection * splt;
|
||||
|
||||
splt = bfd_get_section_by_name (dynobj, ".plt");
|
||||
|
||||
value = (splt->output_section->vma
|
||||
@ -1321,8 +1317,6 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto,
|
||||
case R_MN10300_GOT24:
|
||||
case R_MN10300_GOT16:
|
||||
{
|
||||
asection * sgot;
|
||||
|
||||
sgot = bfd_get_section_by_name (dynobj, ".got");
|
||||
|
||||
if (h != NULL)
|
||||
|
Reference in New Issue
Block a user