mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
check; don't suppress dynamic relocs for non-allocated sections.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-01 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
|
||||||
|
check; don't suppress dynamic relocs for non-allocated sections.
|
||||||
|
|
||||||
2002-05-31 Alan Modra <amodra@bigpond.net.au>
|
2002-05-31 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* bfd-in2.h: Regenerate.
|
* bfd-in2.h: Regenerate.
|
||||||
|
@ -2640,7 +2640,7 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
|
|||||||
if (h && ((info->shared
|
if (h && ((info->shared
|
||||||
&& (!info->symbolic || info->allow_shlib_undefined))
|
&& (!info->symbolic || info->allow_shlib_undefined))
|
||||||
|| ! (h->root.elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)
|
|| ! (h->root.elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)
|
||||||
|| h->root.type == bfd_link_hash_defweak))
|
|| h->root.root.type == bfd_link_hash_defweak))
|
||||||
maybe_dynamic = true;
|
maybe_dynamic = true;
|
||||||
|
|
||||||
need = 0;
|
need = 0;
|
||||||
@ -2815,12 +2815,13 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
|
|||||||
else
|
else
|
||||||
rent->count++;
|
rent->count++;
|
||||||
}
|
}
|
||||||
else if (info->shared && (sec->flags & SEC_ALLOC))
|
else if (info->shared)
|
||||||
{
|
{
|
||||||
/* If this is a shared library, and the section is to be
|
/* If this is a shared library, and the section is to be
|
||||||
loaded into memory, we need a RELATIVE reloc. */
|
loaded into memory, we need a RELATIVE reloc. */
|
||||||
sreloc->_raw_size += sizeof (Elf64_External_Rela);
|
sreloc->_raw_size += sizeof (Elf64_External_Rela);
|
||||||
if (sec->flags & SEC_READONLY)
|
if ((sec->flags & (SEC_READONLY | SEC_ALLOC))
|
||||||
|
== (SEC_READONLY | SEC_ALLOC))
|
||||||
info->flags |= DF_TEXTREL;
|
info->flags |= DF_TEXTREL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user