+2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
+ symbol.
+
2006-04-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2411
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;
}