From 809391bd0ab1443e76b99502a55f8fef5267fb0a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 9 Nov 1994 17:48:24 +0000 Subject: [PATCH] * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where we allocate common symbols. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 119e7e8e09d..7374fc1af4f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 9 12:47:11 1994 Ian Lance Taylor + + * ldlang.c (lang_one_common): Set SEC_ALLOC in any section where + we allocate common symbols. + Tue Nov 8 17:50:43 1994 Eric Youngdale (eric@aib.com) * scripttempl/elf.sc: Add .rel.init, .rela.init, .rel.fini, and diff --git a/ld/ldlang.c b/ld/ldlang.c index 9643c284828..759e9fc096a 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, -- 2.30.2