diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2009-03-25 03:03:40 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2009-03-25 03:03:40 +0000 |
commit | 34d3d6b92226ffeabe62f20198ff071642d3cb1c (patch) | |
tree | c62222bdebe5186f1d93bc6997465c662f061a88 /bfd/elf32-cris.c | |
parent | 15ba6505cb90d69cbfb101cc5a96c398b714a1a2 (diff) | |
download | gdb-34d3d6b92226ffeabe62f20198ff071642d3cb1c.zip gdb-34d3d6b92226ffeabe62f20198ff071642d3cb1c.tar.gz gdb-34d3d6b92226ffeabe62f20198ff071642d3cb1c.tar.bz2 |
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r-- | bfd/elf32-cris.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index ed1f3e8..2037b10 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -1733,7 +1733,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, return FALSE; } - if (!info->shared && (h == NULL || h->def_regular)) + if (!info->shared + && (h == NULL || h->def_regular || ELF_COMMON_DEF_P (h))) { /* Known contents of the GOT. */ bfd_vma off; @@ -2000,7 +2001,7 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section, if (h != NULL && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT - && !h->def_regular + && !(h->def_regular || ELF_COMMON_DEF_P (h)) /* If it's undefined, then an error message has already been emitted. */ && h->root.type != bfd_link_hash_undefined) |