Use consistent test for .tbss sections in ldlang.c
authorAlan Modra <amodra@gmail.com>
Wed, 30 Mar 2016 07:09:36 +0000 (17:39 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 30 Mar 2016 07:20:03 +0000 (17:50 +1030)
commit2e4a7aea70a94d0efe1ad1912f8392c848d8de54
treefc2eb10f13df13dbef01c1e049e027c964bf8979
parent4ae6cc19626d010005fbfbfba72952d26cc7c728
Use consistent test for .tbss sections in ldlang.c

Some places tested SEC_LOAD, others SEC_HAS_CONTENTS.

* ldlang.c (IS_TBSS): New macro, extracted from..
(IGNORE_SECTION): ..here.
(lang_size_sections_1): Use IS_TBSS and IGNORE_SECTION.
(lang_size_sections, lang_do_assignments_1): Use IS_TBSS.
ld/ChangeLog
ld/ldlang.c