aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-06 22:33:18 +0000
committerAlan Modra <amodra@gmail.com>2002-12-06 22:33:18 +0000
commit18794b0c44e630d4d4ee0b496ac716e6212e3141 (patch)
treefd8e2673f3f7c537b40e17ffe5bb75478d5a0d4b
parentb4a77b47128fcafcdf9376fc8ef205e17ec4b47b (diff)
downloadfsf-binutils-gdb-18794b0c44e630d4d4ee0b496ac716e6212e3141.zip
fsf-binutils-gdb-18794b0c44e630d4d4ee0b496ac716e6212e3141.tar.gz
fsf-binutils-gdb-18794b0c44e630d4d4ee0b496ac716e6212e3141.tar.bz2
* ldlang.c (init_os): Ensure sections mentioned in load_base
are initialized.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 09b9c7d..a3c1faf 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-07 Alan Modra <amodra@bigpond.net.au>
+
+ * ldlang.c (init_os): Ensure sections mentioned in load_base
+ are initialized.
+
2002-12-05 Alan Modra <amodra@bigpond.net.au>
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
diff --git a/ld/ldlang.c b/ld/ldlang.c
index c2a1162..66b4b13 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