aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-02-13 22:47:28 +0000
committerIan Lance Taylor <iant@google.com>2008-02-13 22:47:28 +0000
commit756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba (patch)
tree760861f58d6eac92959589049c0348bb24fc1790 /gold/output.h
parent3edc73f245b7f714af35f98ccc69212358d7a594 (diff)
downloadgdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.zip
gdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.tar.gz
gdb-756ac4a80d33f8c434c41fdd6b7f58fef8d1e1ba.tar.bz2
Implement -Tdata and -Tbss.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index 8f7a564..8d0a853 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -2528,6 +2528,12 @@ class Output_segment
void
add_initial_output_data(Output_data*);
+ // Return true if this segment has any sections which hold actual
+ // data, rather than being a BSS section.
+ bool
+ has_any_data_sections() const
+ { return !this->output_data_.empty(); }
+
// Return the number of dynamic relocations applied to this segment.
unsigned int
dynamic_reloc_count() const;