summaryrefslogtreecommitdiff
path: root/gold/ehframe.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-29 20:10:17 +0000
committerIan Lance Taylor <iant@google.com>2007-11-29 20:10:17 +0000
commit27bc2bce094e3a3ef536c5b8c2a38470bd7f3217 (patch)
treed5e89fcd143c9cd693712fb947f7afdf2426adb6 /gold/ehframe.cc
parent6ac84f65c22563675d0c3153db167db8f99df6f9 (diff)
downloadbinutils-gdb-27bc2bce094e3a3ef536c5b8c2a38470bd7f3217.tar.gz
Clean up setting address and section offset.
Diffstat (limited to 'gold/ehframe.cc')
-rw-r--r--gold/ehframe.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/ehframe.cc b/gold/ehframe.cc
index 1c7b7141aba..91a977f88c4 100644
--- a/gold/ehframe.cc
+++ b/gold/ehframe.cc
@@ -88,10 +88,10 @@ Eh_frame_hdr::Eh_frame_hdr(Output_section* eh_frame_section,
{
}
-// Set the final address and size of the exception frame header.
+// Set the size of the exception frame header.
void
-Eh_frame_hdr::do_set_address(uint64_t, off_t)
+Eh_frame_hdr::set_final_data_size()
{
unsigned int data_size = eh_frame_hdr_size + 4;
if (!this->any_unrecognized_eh_frame_sections_)
@@ -976,8 +976,9 @@ Eh_frame::fde_count() const
// Set the final data size.
void
-Eh_frame::do_set_address(uint64_t, off_t start_file_offset)
+Eh_frame::set_final_data_size()
{
+ off_t start_file_offset = this->offset();
off_t output_offset = 0;
for (Unmergeable_cie_offsets::iterator p =