aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-08-20 02:14:50 +0000
committerAlan Modra <amodra@gmail.com>2001-08-20 02:14:50 +0000
commitbba1a0c06251b064c5be78ff3e82b568e6ce0037 (patch)
tree67f04501f7746ddc4454e45bcbee1e38a53bbfec /ld/emultempl
parentc0c330a70f2a352d6bfe279336c8337c3d670dba (diff)
downloadfsf-binutils-gdb-bba1a0c06251b064c5be78ff3e82b568e6ce0037.zip
fsf-binutils-gdb-bba1a0c06251b064c5be78ff3e82b568e6ce0037.tar.gz
fsf-binutils-gdb-bba1a0c06251b064c5be78ff3e82b568e6ce0037.tar.bz2
* ldlang.c: When traversing lang_statement_union_type lists,
consistently use "header.next" rather than "next". * mpw-eppcmac.c: Likewise. * emultempl/beos.em: Likewise. * emultempl/hppaelf.em: Likewise. * emultempl/pe.em: Likewise. * ldlang.h (union lang_statement_union): Remove "next" field.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/beos.em10
-rw-r--r--ld/emultempl/hppaelf.em2
-rw-r--r--ld/emultempl/pe.em4
3 files changed, 8 insertions, 8 deletions
diff --git a/ld/emultempl/beos.em b/ld/emultempl/beos.em
index 1d9546b..e11974b 100644
--- a/ld/emultempl/beos.em
+++ b/ld/emultempl/beos.em
@@ -554,7 +554,7 @@ sort_sections_1 (startptr, next_after, count, sort_func)
vec = ((lang_statement_union_type **)
xmalloc (count * sizeof (lang_statement_union_type *)));
- for (p = *startptr, i = 0; i < count; i++, p = p->next)
+ for (p = *startptr, i = 0; i < count; i++, p = p->header.next)
vec[i] = p;
qsort (vec, count, sizeof (vec[0]), sort_func);
@@ -587,7 +587,7 @@ static void
sort_sections (s)
lang_statement_union_type *s;
{
- for (; s ; s = s->next)
+ for (; s ; s = s->header.next)
switch (s->header.type)
{
case lang_output_section_statement_enum:
@@ -625,7 +625,7 @@ sort_sections (s)
for (end = start, count = 0;
end && (end->header.type
== lang_input_section_enum);
- end = end->next)
+ end = end->header.next)
count++;
p = sort_sections_1 (p, end, count,
@@ -652,7 +652,7 @@ sort_sections (s)
lang_statement_union_type *end;
int count;
- for (end = *p, count = 0; end; end = end->next)
+ for (end = *p, count = 0; end; end = end->header.next)
{
if (end->header.type != lang_input_section_enum)
abort ();
@@ -772,7 +772,7 @@ gld${EMULATION_NAME}_place_orphan (file, s)
ps[0] = '\$';
ps[1] = 0;
- for (l = os->children.head; l; l = l->next)
+ for (l = os->children.head; l; l = l->header.next)
if (l->header.type == lang_wild_statement_enum)
{
struct wildcard_list *sec;
diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em
index f367673..31ef43c 100644
--- a/ld/emultempl/hppaelf.em
+++ b/ld/emultempl/hppaelf.em
@@ -106,7 +106,7 @@ hook_in_stub (info, lp)
lang_statement_union_type *l;
boolean ret;
- for (; (l = *lp) != NULL; lp = &l->next)
+ for (; (l = *lp) != NULL; lp = &l->header.next)
{
switch (l->header.type)
{
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index fce661e..0303732 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -1703,7 +1703,7 @@ gld_${EMULATION_NAME}_place_orphan (file, s)
sections. */
found_dollar = false;
- for ( ; *pl != NULL; pl = &(*pl)->next)
+ for ( ; *pl != NULL; pl = &(*pl)->header.next)
{
lang_input_section_type *ls;
const char *lname;
@@ -1730,7 +1730,7 @@ gld_${EMULATION_NAME}_place_orphan (file, s)
if (add_child.head != NULL)
{
- add_child.head->next = *pl;
+ add_child.head->header.next = *pl;
*pl = add_child.head;
}
}