aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-10-19 15:05:58 +0000
committerIan Lance Taylor <ian@airs.com>2011-10-19 15:05:58 +0000
commitea0d8c4740b09bb4d919a3e6b53d7a141f76a2bd (patch)
tree50897e96b062747ac46fa0ea1c2817548acfb13e /gold/options.h
parent1d5316ab67e12d6fb58c29728eb72fa937521e94 (diff)
downloadgdb-ea0d8c4740b09bb4d919a3e6b53d7a141f76a2bd.zip
gdb-ea0d8c4740b09bb4d919a3e6b53d7a141f76a2bd.tar.gz
gdb-ea0d8c4740b09bb4d919a3e6b53d7a141f76a2bd.tar.bz2
PR gold/13204
* layout.cc (Layout::segment_precedes): Don't assert failure if a --section-start option was seen. * options.h (General_options::any_section_start): New function.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 427e957..2837790 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1381,6 +1381,11 @@ class General_options
bool
section_start(const char* secname, uint64_t* paddr) const;
+ // Return whether any --section-start option was used.
+ bool
+ any_section_start() const
+ { return !this->section_starts_.empty(); }
+
enum Fix_v4bx
{
// Leave original instruction.