OSDN Git Service

* gc.h (Garbage_collection::Cident_section_map): New typedef.
authortmsriram <tmsriram>
Thu, 7 Jan 2010 16:14:29 +0000 (16:14 +0000)
committertmsriram <tmsriram>
Thu, 7 Jan 2010 16:14:29 +0000 (16:14 +0000)
commit97782959b3f7ade1690c382a91a17063a98f3451
tree58be65ee9389c03f6b56e0f0747936cdba7799c3
parentc7194a1dae634101d46b0b289a646a7940176dc5
* gc.h (Garbage_collection::Cident_section_map): New typedef.
(Garbage_collection::cident_sections): New function.
(Garbage_collection::add_cident_section): New function.
(Garbage_collection::cident_sections_): New member.
(gc_process_relocs): Add references to sections whose names are C
identifiers.
* gold.h (cident_section_start_prefix): New constant.
(cident_section_stop_prefix): New constant.
(is_cident): New function.
* layout.cc (Layout::define_section_symbols): Replace string constants
with the newly defined constants.
* object.cc (Sized_relobj::do_layout): Track sections whose names are
C identifiers.
* testsuite/Makefile.am: Add gc_orphan_section_test.
* testsuite/Makefile.in: Regenerate.
* testsuite/gc_orphan_section_test.cc: New file.
* testsuite/gc_orphan_section_test.sh: New file.
gold/ChangeLog
gold/gc.h
gold/gold.h
gold/layout.cc
gold/object.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/gc_orphan_section_test.cc [new file with mode: 0644]
gold/testsuite/gc_orphan_section_test.sh [new file with mode: 0755]