aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-bfin.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2006-04-05 19:57:36 +0000
committerBernd Schmidt <bernds@codesourcery.com>2006-04-05 19:57:36 +0000
commit0781db9f1005afbda29c49f5cb3ef85d7c799db0 (patch)
tree8922d560634cdc2a186d382a622877567b19cc33 /bfd/elf32-bfin.c
parent80f9e3aafedebe1e99fab2f000eedcdcd7c60c34 (diff)
downloadfsf-binutils-gdb-0781db9f1005afbda29c49f5cb3ef85d7c799db0.zip
fsf-binutils-gdb-0781db9f1005afbda29c49f5cb3ef85d7c799db0.tar.gz
fsf-binutils-gdb-0781db9f1005afbda29c49f5cb3ef85d7c799db0.tar.bz2
* elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
symbol.
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r--bfd/elf32-bfin.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 219a834..a08161c 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -3343,23 +3343,6 @@ _bfin_create_got_section (bfd *abfd, struct bfd_link_info *info)
flags = BSF_GLOBAL | BSF_WEAK;
}
- /* Define _gp in .rofixup, for FDPIC, or .got otherwise. If it
- turns out that we're linking with a different linker script, the
- linker script will override it. */
- bh = NULL;
- if (!(_bfd_generic_link_add_one_symbol
- (info, abfd, "_gp", flags, s, offset, (const char *) NULL, FALSE,
- bed->collect, &bh)))
- return FALSE;
- h = (struct elf_link_hash_entry *) bh;
- h->def_regular = 1;
- h->type = STT_OBJECT;
- /* h->other = STV_HIDDEN; */ /* Should we? */
-
- /* Machine-specific: we want the symbol for executables as well. */
- if (IS_FDPIC (abfd) && ! bfd_elf_link_record_dynamic_symbol (info, h))
- return FALSE;
-
return TRUE;
}