aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1998-04-19 01:41:34 +0000
committerRichard Henderson <rth@redhat.com>1998-04-19 01:41:34 +0000
commit79cee2b7686c8b24b24be330bf875c7f387a990b (patch)
tree68b684b1860ecd86856a8fdaed984ece5ea772b5 /ld/ldlang.c
parent7c0892b3c3210035a1eb611e11ee285efb942cf5 (diff)
downloadgdb-79cee2b7686c8b24b24be330bf875c7f387a990b.zip
gdb-79cee2b7686c8b24b24be330bf875c7f387a990b.tar.gz
gdb-79cee2b7686c8b24b24be330bf875c7f387a990b.tar.bz2
* ldlang.c (lang_one_common): Manipulate the section's cooked size
rather than its raw size. pr 15650
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 6cdab2b..e4a2af2 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2824,8 +2824,8 @@ lang_one_common (h, info)
section = h->u.c.p->section;
/* Increase the size of the section. */
- section->_raw_size = ALIGN_N (section->_raw_size,
- (bfd_size_type) (1 << power_of_two));
+ section->_cooked_size = ALIGN_N (section->_cooked_size,
+ (bfd_size_type) (1 << power_of_two));
/* Adjust the alignment if necessary. */
if (power_of_two > section->alignment_power)
@@ -2834,10 +2834,10 @@ lang_one_common (h, info)
/* Change the symbol from common to defined. */
h->type = bfd_link_hash_defined;
h->u.def.section = section;
- h->u.def.value = section->_raw_size;
+ h->u.def.value = section->_cooked_size;
/* Increase the size of the section. */
- section->_raw_size += size;
+ section->_cooked_size += size;
/* Make sure the section is allocated in memory, and make sure that
it is no longer a common section. */