* ldlang.h (lang_output_section_statement_type): Add prev.
* ldlang.c (output_statement_newfunc): Set os.prev.
(lang_insert_orphan): Likewise.
(output_prev_sec_find): Use os.prev.
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 381bb04..cf5b01f 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -130,6 +130,7 @@
lang_statement_header_type header;
lang_statement_list_type children;
struct lang_output_section_statement_struct *next;
+ struct lang_output_section_statement_struct *prev;
const char *name;
asection *bfd_section;
lang_memory_region_type *region;