mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
local variable i_ instead of assuming and using a variable i.
This commit is contained in:
parent
545fd46b6b
commit
a134cc9b6c
@ -1,3 +1,8 @@
|
||||
2012-05-07 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
|
||||
local variable i_ instead of assuming and using a variable i.
|
||||
|
||||
2012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
|
||||
|
||||
* elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
|
||||
|
@ -2411,6 +2411,7 @@ extern asection _bfd_elf_large_com_section;
|
||||
rel, count, relend, \
|
||||
howto, index, contents) \
|
||||
{ \
|
||||
int i_; \
|
||||
_bfd_clear_contents (howto, input_bfd, input_section, \
|
||||
contents + rel[index].r_offset); \
|
||||
\
|
||||
@ -2440,10 +2441,10 @@ extern asection _bfd_elf_large_com_section;
|
||||
} \
|
||||
} \
|
||||
\
|
||||
for (i = 0; i < count; i++) \
|
||||
for (i_ = 0; i_ < count; i_++) \
|
||||
{ \
|
||||
rel[i].r_info = 0; \
|
||||
rel[i].r_addend = 0; \
|
||||
rel[i_].r_info = 0; \
|
||||
rel[i_].r_addend = 0; \
|
||||
} \
|
||||
rel += count - 1; \
|
||||
continue; \
|
||||
|
Loading…
Reference in New Issue
Block a user