Lines 675-682
find_section_in_set (const char * name, unsigned int * set)
Link Here
|
675 |
if (set != NULL) |
675 |
if (set != NULL) |
676 |
{ |
676 |
{ |
677 |
while ((i = *set++) > 0) |
677 |
while ((i = *set++) > 0) |
678 |
if (streq (SECTION_NAME (section_headers + i), name)) |
678 |
{ |
679 |
return section_headers + i; |
679 |
/* See PR 21156 for a reproducer. */ |
|
|
680 |
if (i >= elf_header.e_shnum) |
681 |
continue; /* FIXME: Should we issue an error message ? */ |
682 |
|
683 |
if (streq (SECTION_NAME (section_headers + i), name)) |
684 |
return section_headers + i; |
685 |
} |
680 |
} |
686 |
} |
681 |
|
687 |
|
682 |
return find_section (name); |
688 |
return find_section (name); |
683 |
- |
|
|