* ldlang.c (lang_do_assignments_1): Handle .tbss output section

specially.
This commit is contained in:
Jakub Jelinek 2004-04-19 07:35:12 +00:00
parent bef5cbecf3
commit 3737f867ac
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-04-19 Jakub Jelinek <jakub@redhat.com>
* ldlang.c (lang_do_assignments_1): Handle .tbss output section
specially.
2004-04-18 Danny Smith <dannysmith@users.sourceforge.net> 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
* scriptempl/pe.sc: Put numbered .ctors.* after .ctors * scriptempl/pe.sc: Put numbered .ctors.* after .ctors

View file

@ -3350,9 +3350,11 @@ lang_do_assignments_1
{ {
dot = os->bfd_section->vma; dot = os->bfd_section->vma;
lang_do_assignments_1 (os->children.head, os, os->fill, dot); lang_do_assignments_1 (os->children.head, os, os->fill, dot);
dot = (os->bfd_section->vma /* .tbss sections effectively have zero size. */
+ TO_ADDR (os->bfd_section->_raw_size)); if ((os->bfd_section->flags & SEC_HAS_CONTENTS) != 0
|| (os->bfd_section->flags & SEC_THREAD_LOCAL) == 0
|| link_info.relocatable)
dot += TO_ADDR (os->bfd_section->_raw_size);
} }
if (os->load_base) if (os->load_base)
{ {