From: Richard Henderson Date: Sun, 19 Apr 1998 01:41:34 +0000 (+0000) Subject: * ldlang.c (lang_one_common): Manipulate the section's cooked size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79cee2b7686c8b24b24be330bf875c7f387a990b;p=binutils-gdb.git * ldlang.c (lang_one_common): Manipulate the section's cooked size rather than its raw size. pr 15650 --- diff --git a/ld/ChangeLog b/ld/ChangeLog index e5a8a7d4655..c2ac9dac186 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 18 18:41:12 1998 Richard Henderson + + * ldlang.c (lang_one_common): Manipulate the section's cooked size + rather than its raw size. + Tue Apr 7 13:35:29 1998 H.J. Lu * configure.in (TESTBFDLIB): New. Defined and substituted. diff --git a/ld/ldlang.c b/ld/ldlang.c index 6cdab2b1e71..e4a2af2d7db 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. */