mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
This fixes PR 17110 which shows that the SH section relocation code can be called
for input BFDs as well as output BFDs. PR ld/17110 * elf32-sh.c (sh_elf_osec_to_segment): Do not look for output segments in input bfds.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2014-07-08 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR ld/17110
|
||||||
|
* elf32-sh.c (sh_elf_osec_to_segment): Do not look for output
|
||||||
|
segments in input bfds.
|
||||||
|
|
||||||
2014-07-08 Will Newton <will.newton@linaro.org>
|
2014-07-08 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
* elf32-arm.c (ELF_MAXPAGESIZE): Increase the default
|
* elf32-arm.c (ELF_MAXPAGESIZE): Increase the default
|
||||||
|
@ -3676,7 +3676,9 @@ sh_elf_osec_to_segment (bfd *output_bfd, asection *osec)
|
|||||||
{
|
{
|
||||||
Elf_Internal_Phdr *p = NULL;
|
Elf_Internal_Phdr *p = NULL;
|
||||||
|
|
||||||
if (output_bfd->xvec->flavour == bfd_target_elf_flavour)
|
if (output_bfd->xvec->flavour == bfd_target_elf_flavour
|
||||||
|
/* PR ld/17110: Do not look for output segments in an input bfd. */
|
||||||
|
&& output_bfd->direction != read_direction)
|
||||||
p = _bfd_elf_find_segment_containing_section (output_bfd, osec);
|
p = _bfd_elf_find_segment_containing_section (output_bfd, osec);
|
||||||
|
|
||||||
/* FIXME: Nothing ever says what this index is relative to. The kernel
|
/* FIXME: Nothing ever says what this index is relative to. The kernel
|
||||||
|
Reference in New Issue
Block a user