aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-08-02 11:59:11 +0000
committerIan Lance Taylor <ian@airs.com>2010-08-02 11:59:11 +0000
commit5f1ab67afc4b968ef1de25b13f644fd20ac029d9 (patch)
treefa058ec61f822375f9007fa84fe99943fe2c6e48 /gold/output.h
parent85cfcbfb1a3bce62a3537eb7480ef1116f4c0d94 (diff)
downloadbinutils-5f1ab67afc4b968ef1de25b13f644fd20ac029d9.zip
binutils-5f1ab67afc4b968ef1de25b13f644fd20ac029d9.tar.gz
binutils-5f1ab67afc4b968ef1de25b13f644fd20ac029d9.tar.bz2
PR 11866
* output.cc (Output_segment::set_offset): Search for the first and last sections rather than assuming that the list is in order. (Output_segment::find_first_and_last_list): New function. * output.h (class Output_segment): Update declarations. * testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test. (relro_strip_test_SOURCES): New variable. (relro_strip_test_DEPENDENCIES): New variable. (relro_strip_test_LDFLAGS): New variable. (relro_strip_test_LDADD): New variable. (relro_strip_test.so): New target.
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 894773d..b07c4ad3 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -4023,6 +4023,12 @@ class Output_segment
Output_section** found,
uint64_t* found_lma) const;
+ // Find the first and last entries by address.
+ void
+ find_first_and_last_list(const Output_data_list* pdl,
+ const Output_data** pfirst,
+ const Output_data** plast) const;
+
// Write the section headers in the list into V.
template<int size, bool big_endian>
unsigned char*