rx: Fix p_vaddr reconstruction logic.
* elf32-rx.c (rx_elf_object_p): Ignore empty and nobits sections.
This commit is contained in:
parent
1eac08cc37
commit
7859afc4fa
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2015-12-08 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* elf32-rx.c (rx_elf_object_p): Ignore empty and nobits sections.
|
||||
|
||||
2015-12-07 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* elf32-rx.c (elf32_rx_relax_delete_bytes): Add extra parameter -
|
||||
|
|
|
@ -3229,6 +3229,8 @@ rx_elf_object_p (bfd * abfd)
|
|||
|
||||
if (phdr[i].p_filesz
|
||||
&& phdr[i].p_offset <= (bfd_vma) sec->sh_offset
|
||||
&& sec->sh_size > 0
|
||||
&& sec->sh_type != SHT_NOBITS
|
||||
&& (bfd_vma)sec->sh_offset <= phdr[i].p_offset + (phdr[i].p_filesz - 1))
|
||||
{
|
||||
/* Found one! The difference between the two addresses,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue