Fix problem where absolute local symbols are omitted when output has many sections.
authorCary Coutant <ccoutant@gmail.com>
Mon, 5 Dec 2016 18:41:09 +0000 (10:41 -0800)
committerCary Coutant <ccoutant@gmail.com>
Mon, 5 Dec 2016 18:41:09 +0000 (10:41 -0800)
commit82d93790a85300d8452450b6d43efb6b15b53788
tree85c425898bd936ae050993bca517a206c1c2e470
parentf49547a604b4dd2c75e3636d4a422d52edc4fa6c
Fix problem where absolute local symbols are omitted when output has many sections.

2016-12-05  Cary Coutant  <ccoutant@gmail.com>
            Tristan Gingold  <gingold@adacore.com>

gold/
* object.cc (Sized_relobj_file::do_count_local_symbols): Check
is_ordinary before using shndx.
* testsuite/Makefile.am (file_in_many_sections_test.sh): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/file_in_many_sections.c: New source file.
* testsuite/file_in_many_sections_test.sh: New script.
gold/ChangeLog
gold/object.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/file_in_many_sections.c [new file with mode: 0644]
gold/testsuite/file_in_many_sections_test.sh [new file with mode: 0644]