From bba1a0c06251b064c5be78ff3e82b568e6ce0037 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 20 Aug 2001 02:14:50 +0000 Subject: * 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. --- ld/emultempl/pe.em | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/emultempl/pe.em') 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; } } -- cgit v1.1