mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
2007-05-04 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (elf_link_sort_relocs): Return if both .rela.dyn and .rel.dyn aren't present.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-05-04 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
|
||||||
|
and .rel.dyn aren't present.
|
||||||
|
|
||||||
2007-05-04 Nick Clifton <nickc@redhat.com>
|
2007-05-04 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
|
* elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
|
||||||
|
@ -7221,8 +7221,8 @@ static size_t
|
|||||||
elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec)
|
elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec)
|
||||||
{
|
{
|
||||||
asection *dynamic_relocs;
|
asection *dynamic_relocs;
|
||||||
asection * rela_dyn;
|
asection *rela_dyn;
|
||||||
asection * rel_dyn;
|
asection *rel_dyn;
|
||||||
bfd_size_type count, size;
|
bfd_size_type count, size;
|
||||||
size_t i, ret, sort_elt, ext_size;
|
size_t i, ret, sort_elt, ext_size;
|
||||||
bfd_byte *sort, *s_non_relative, *p;
|
bfd_byte *sort, *s_non_relative, *p;
|
||||||
@ -7361,10 +7361,12 @@ elf_link_sort_relocs (bfd *abfd, struct bfd_link_info *info, asection **psec)
|
|||||||
/* Make a guess. */
|
/* Make a guess. */
|
||||||
use_rela = TRUE;
|
use_rela = TRUE;
|
||||||
}
|
}
|
||||||
else if (rela_dyn == NULL || rela_dyn->size == 0)
|
else if (rela_dyn != NULL && rela_dyn->size > 0)
|
||||||
|
use_rela = TRUE;
|
||||||
|
else if (rel_dyn != NULL && rel_dyn->size > 0)
|
||||||
use_rela = FALSE;
|
use_rela = FALSE;
|
||||||
else
|
else
|
||||||
use_rela = TRUE;
|
return 0;
|
||||||
|
|
||||||
if (use_rela)
|
if (use_rela)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user