diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2002-11-07 13:28:04 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2002-11-07 13:28:04 +0000 |
commit | 2f9dff060f6a406de9a27bca8e4a46d14cb1e223 (patch) | |
tree | 9eeba5f001753feaf76e3e919ec4f8dd18a12da9 | |
parent | 62fdea018a76bf1387c79d859d9095ec05ae321c (diff) | |
download | gdb-2f9dff060f6a406de9a27bca8e4a46d14cb1e223.tar.gz |
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT,
case R_CRIS_32_GOT>: Correct test for filling in constant .got
contents, enabling for a non-DSO, for symbols defined in the
program with --export-dynamic.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf32-cris.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d97edd23568..941da8a28d1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2002-11-07 Hans-Peter Nilsson <hp@axis.com> + + * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT, + case R_CRIS_32_GOT>: Correct test for filling in constant .got + contents, enabling for a non-DSO, for symbols defined in the + program with --export-dynamic. + 2002-11-07 Alan Modra <amodra@bigpond.net.au> * elf64-ppc.c: Comment typo fixes. diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 8eff52dd5ad..dfbdbe75f68 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -1022,7 +1022,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, BFD_ASSERT (off != (bfd_vma) -1); if (!elf_hash_table (info)->dynamic_sections_created - || (! info->shared && h->dynindx == -1) + || (! info->shared + && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR)) || (info->shared && (info->symbolic || h->dynindx == -1) && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR))) |