projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add vmfunc
[deliverable/binutils-gdb.git]
/
ld
/
ldctor.c
diff --git
a/ld/ldctor.c
b/ld/ldctor.c
index 636b971c860b9ca3f142ecf6b8f867052aed3cf9..1a86eb38e893412a1cd18097c058fc59254942a6 100644
(file)
--- a/
ld/ldctor.c
+++ b/
ld/ldctor.c
@@
-1,6
+1,6
@@
/* ldctor.c -- constructor support routines
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
/* ldctor.c -- constructor support routines
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
- 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
, 2011
Free Software Foundation, Inc.
By Steve Chamberlain <sac@cygnus.com>
Free Software Foundation, Inc.
By Steve Chamberlain <sac@cygnus.com>
@@
-70,7
+70,7
@@
ldctor_add_set_entry (struct bfd_link_hash_entry *h,
if (p == NULL)
{
if (p == NULL)
{
- p = xmalloc (sizeof (struct set_info));
+ p =
(struct set_info *)
xmalloc (sizeof (struct set_info));
p->next = sets;
sets = p;
p->h = h;
p->next = sets;
sets = p;
p->h = h;
@@
-106,7
+106,7
@@
ldctor_add_set_entry (struct bfd_link_hash_entry *h,
}
}
}
}
- e = xmalloc (sizeof (struct set_element));
+ e =
(struct set_element *)
xmalloc (sizeof (struct set_element));
e->next = NULL;
e->name = name;
e->section = section;
e->next = NULL;
e->name = name;
e->section = section;
@@
-153,8
+153,10
@@
ctor_prio (const char *name)
static int
ctor_cmp (const void *p1, const void *p2)
{
static int
ctor_cmp (const void *p1, const void *p2)
{
- const struct set_element * const *pe1 = p1;
- const struct set_element * const *pe2 = p2;
+ const struct set_element * const *pe1 =
+ (const struct set_element * const *) p1;
+ const struct set_element * const *pe2 =
+ (const struct set_element * const *) p2;
const char *n1;
const char *n2;
int prio1;
const char *n1;
const char *n2;
int prio1;
@@
-223,7
+225,7
@@
ldctor_build_sets (void)
for (e = p->elements; e != NULL; e = e->next)
++c;
for (e = p->elements; e != NULL; e = e->next)
++c;
- array = xmalloc (c * sizeof *array);
+ array =
(struct set_element **)
xmalloc (c * sizeof *array);
i = 0;
for (e = p->elements; e != NULL; e = e->next)
i = 0;
for (e = p->elements; e != NULL; e = e->next)
@@
-317,11
+319,11
@@
ldctor_build_sets (void)
break;
}
break;
}
- lang_add_assignment (exp_ass
op ('=',
".",
- exp_unop (ALIGN_K,
- exp_intop (reloc_size))));
- lang_add_assignment (exp_ass
op ('=',
p->h->root.string,
- exp_nameop (NAME, ".")));
+ lang_add_assignment (exp_ass
ign (
".",
+
exp_unop (ALIGN_K,
+
exp_intop (reloc_size))));
+ lang_add_assignment (exp_ass
ign (
p->h->root.string,
+
exp_nameop (NAME, ".")));
lang_add_data (size, exp_intop (p->count));
for (e = p->elements; e != NULL; e = e->next)
lang_add_data (size, exp_intop (p->count));
for (e = p->elements; e != NULL; e = e->next)
This page took
0.024181 seconds
and
4
git commands to generate.