diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-26 07:01:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-26 07:01:35 +0000 |
commit | 9025d29d14ae287d2bc338ef1b0bfa043799e15c (patch) | |
tree | 7802e1942ac6c30223c2bd6b077dc3a64e1d9280 /gold/ehframe.cc | |
parent | cc941dee4852b197c1437b2eb28eafb0c9ccaff9 (diff) | |
download | gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.zip gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.tar.gz gdb-9025d29d14ae287d2bc338ef1b0bfa043799e15c.tar.bz2 |
Put size and endianness in parameters.
Diffstat (limited to 'gold/ehframe.cc')
-rw-r--r-- | gold/ehframe.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gold/ehframe.cc b/gold/ehframe.cc index 1e0583a..607654b 100644 --- a/gold/ehframe.cc +++ b/gold/ehframe.cc @@ -75,10 +75,9 @@ const int eh_frame_hdr_size = 4; // Construct the exception frame header. -Eh_frame_hdr::Eh_frame_hdr(const Target* target, - Output_section* eh_frame_section) +Eh_frame_hdr::Eh_frame_hdr(Output_section* eh_frame_section) : Output_section_data(4), - target_(target), eh_frame_section_(eh_frame_section) + eh_frame_section_(eh_frame_section) { } @@ -109,7 +108,7 @@ Eh_frame_hdr::do_write(Output_file* of) uint64_t eh_frame_hdr_address = this->address(); uint64_t eh_frame_offset = (eh_frame_address - (eh_frame_hdr_address + 4)); - if (this->target_->is_big_endian()) + if (parameters->is_big_endian()) elfcpp::Swap<32, true>::writeval(oview + 4, eh_frame_offset); else elfcpp::Swap<32, false>::writeval(oview + 4, eh_frame_offset); |