aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-11-09 17:48:24 +0000
committerIan Lance Taylor <ian@airs.com>1994-11-09 17:48:24 +0000
commit809391bd0ab1443e76b99502a55f8fef5267fb0a (patch)
tree1b4d6c815dd12cc54347565121484cba0ed23be0 /ld/ldlang.c
parentcd1d4f83e73e16e656c952bd14001f105fc4d412 (diff)
downloadgdb-809391bd0ab1443e76b99502a55f8fef5267fb0a.zip
gdb-809391bd0ab1443e76b99502a55f8fef5267fb0a.tar.gz
gdb-809391bd0ab1443e76b99502a55f8fef5267fb0a.tar.bz2
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
we allocate common symbols.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9643c28..759e9fc 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2260,6 +2260,9 @@ lang_one_common (h, info)
/* Increase the size of the section. */
section->_raw_size += size;
+ /* Make sure the section is allocated in memory. */
+ section->flags |= SEC_ALLOC;
+
if (config.map_file != NULL)
fprintf (config.map_file, "Allocating common %s: %lx at %lx %s\n",
h->root.string, (unsigned long) size,