From 9c4d31b4aff9440c800ffc92f3f69352ca2c33d9 Mon Sep 17 00:00:00 2001 From: amodra Date: Fri, 6 Dec 2002 22:33:18 +0000 Subject: [PATCH] * ldlang.c (init_os): Ensure sections mentioned in load_base are initialized. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 09b9c7de1e..a3c1faf16a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2002-12-07 Alan Modra + + * ldlang.c (init_os): Ensure sections mentioned in load_base + are initialized. + 2002-12-05 Alan Modra * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set diff --git a/ld/ldlang.c b/ld/ldlang.c index c2a11627a3..66b4b13e20 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -912,6 +912,9 @@ init_os (s) mention are initialized. */ if (s->addr_tree != NULL) exp_init_os (s->addr_tree); + + if (s->load_base != NULL) + exp_init_os (s->load_base); } /* Make sure that all output sections mentioned in an expression are -- 2.11.0