mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 02:45:37 +08:00
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
we allocate common symbols.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user