aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-06-05 18:16:31 +0000
committerDoug Kwan <dougkwan@google.com>2009-06-05 18:16:31 +0000
commit805bb01c4b93ddb2422af91ea8f76019c8e0c319 (patch)
tree6596ecdc1a777da42078340ffdeaa191f96cb2f6 /gold/object.h
parentb3ed98d264e2938d253d0b08b0bb51fbdc65c75b (diff)
downloadgdb-805bb01c4b93ddb2422af91ea8f76019c8e0c319.zip
gdb-805bb01c4b93ddb2422af91ea8f76019c8e0c319.tar.gz
gdb-805bb01c4b93ddb2422af91ea8f76019c8e0c319.tar.bz2
2009-06-05 Doug Kwan <dougkwan@google.com>
* object.cc (Sized_relobj::Sized_relobj): Initialize discarded_eh_frame_shndx_ to -1U. (Sized_relobj::do_layout): Record index of a discard .eh_frame section. (Sized_relobj::do_count_local_symbols): Skip local symbols in a discarded .eh_frame section. (Sized_relobj::do_finalize_local_symbols): Ditto. * object.h (class Sized_relobj): Declare new member discarded_eh_frame_shndx_. * testsuite/Makefile.am (check_PROGRAMS): Add local_labels_test. (local_labels_test.o, local_labels_test): New rules. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/object.h')
-rw-r--r--gold/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index a2836d0..d5f111f 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -1815,6 +1815,9 @@ class Sized_relobj : public Relobj
Kept_comdat_section_table kept_comdat_sections_;
// Whether this object has a GNU style .eh_frame section.
bool has_eh_frame_;
+ // If this object has a GNU style .eh_frame section that is discarded in
+ // output, record the index here. Otherwise it is -1U.
+ unsigned int discarded_eh_frame_shndx_;
// The list of sections whose layout was deferred.
std::vector<Deferred_layout> deferred_layout_;
};