Add EXTERN references to __ctbpm __gp and __ep.
Define TEMPLATE_NAME. Revert bogus change to ldexp.c
This commit is contained in:
parent
d66198e1a7
commit
67010b4679
4 changed files with 18 additions and 14 deletions
|
@ -1,8 +1,8 @@
|
||||||
2002-09-02 Nick Clifton <nickc@redhat.com>
|
2002-09-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* ldexp.c (exp_fold_tree): If the first attempt to lookup a
|
* scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
|
||||||
PROVIDEd symbol fails, look it up again, but this time with
|
__ep.
|
||||||
the 'create' flag set.
|
* emulparams/v850.sh (TEMPLATE_NAME): Define.
|
||||||
|
|
||||||
2002-08-30 Nick Clifton <nickc@redhat.com>
|
2002-08-30 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -12,3 +12,4 @@ ARCH=v850
|
||||||
MAXPAGESIZE=256
|
MAXPAGESIZE=256
|
||||||
ENTRY=_start
|
ENTRY=_start
|
||||||
EMBEDDED=yes
|
EMBEDDED=yes
|
||||||
|
TEMPLATE_NAME=elf32
|
||||||
|
|
18
ld/ldexp.c
18
ld/ldexp.c
|
@ -729,17 +729,19 @@ exp_fold_tree (tree, current_section, allocation_done, dot, dotp)
|
||||||
create = false;
|
create = false;
|
||||||
h = bfd_link_hash_lookup (link_info.hash, tree->assign.dst,
|
h = bfd_link_hash_lookup (link_info.hash, tree->assign.dst,
|
||||||
create, false, false);
|
create, false, false);
|
||||||
|
|
||||||
if (tree->type.node_class == etree_provide
|
|
||||||
&& (h == NULL
|
|
||||||
|| h->type == bfd_link_hash_undefined
|
|
||||||
|| h->type == bfd_link_hash_common))
|
|
||||||
h = bfd_link_hash_lookup (link_info.hash, tree->assign.dst,
|
|
||||||
true, false, false);
|
|
||||||
|
|
||||||
if (h == (struct bfd_link_hash_entry *) NULL)
|
if (h == (struct bfd_link_hash_entry *) NULL)
|
||||||
|
{
|
||||||
|
if (tree->type.node_class == etree_assign)
|
||||||
einfo (_("%P%F:%s: hash creation failed\n"),
|
einfo (_("%P%F:%s: hash creation failed\n"),
|
||||||
tree->assign.dst);
|
tree->assign.dst);
|
||||||
|
}
|
||||||
|
else if (tree->type.node_class == etree_provide
|
||||||
|
&& h->type != bfd_link_hash_undefined
|
||||||
|
&& h->type != bfd_link_hash_common)
|
||||||
|
{
|
||||||
|
/* Do nothing. The symbol was defined by some
|
||||||
|
object. */
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* FIXME: Should we worry if the symbol is already
|
/* FIXME: Should we worry if the symbol is already
|
||||||
|
|
|
@ -4,6 +4,7 @@ OUTPUT_FORMAT("elf32-v850", "elf32-v850",
|
||||||
OUTPUT_ARCH(v850)
|
OUTPUT_ARCH(v850)
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
SEARCH_DIR(.);
|
SEARCH_DIR(.);
|
||||||
|
EXTERN(__ctbp __ep __gp);
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* This saves a little space in the ELF file, since the zda starts
|
/* This saves a little space in the ELF file, since the zda starts
|
||||||
|
|
Loading…
Reference in a new issue