diff options
author | Ian Lance Taylor <iant@google.com> | 2006-11-03 18:38:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-11-03 18:38:43 +0000 |
commit | 593f47df457d5e059f49b1ce62d1b51d4a7cc3e4 (patch) | |
tree | 1f5b2070678b01fd88b1818246356679bd078d59 /gold/output.cc | |
parent | ead1e4244a55707685d105c662a9a1faf5d122fe (diff) | |
download | gdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.zip gdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.tar.gz gdb-593f47df457d5e059f49b1ce62d1b51d4a7cc3e4.tar.bz2 |
gcc 3.2.2 portability hacks.
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gold/output.cc b/gold/output.cc index 703a560..220a4f6 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -144,7 +144,7 @@ Output_section_headers::do_sized_write(Output_file* of) for (Layout::Segment_list::const_iterator p = this->segment_list_.begin(); p != this->segment_list_.end(); ++p) - v = (*p)->write_section_headers SELECT_SIZE_ENDIAN_NAME ( + v = (*p)->write_section_headers SELECT_SIZE_ENDIAN_NAME(size, big_endian) ( this->secnamepool_, v, &shndx SELECT_SIZE_ENDIAN(size, big_endian)); for (Layout::Section_list::const_iterator p = this->section_list_.begin(); @@ -333,7 +333,7 @@ Output_file_header::do_sized_write(Output_file* of) else { Sized_symbol<size>* ssym; - ssym = this->symtab_->get_sized_symbol SELECT_SIZE_NAME ( + ssym = this->symtab_->get_sized_symbol SELECT_SIZE_NAME(size) ( sym SELECT_SIZE(size)); v = ssym->value(); } @@ -971,12 +971,14 @@ Output_segment::write_section_headers(const Stringpool* secnamepool, if (this->type_ != elfcpp::PT_LOAD) return v; - v = this->write_section_headers_list SELECT_SIZE_ENDIAN_NAME ( - secnamepool, &this->output_data_, v, pshndx - SELECT_SIZE_ENDIAN(size, big_endian)); - v = this->write_section_headers_list SELECT_SIZE_ENDIAN_NAME ( - secnamepool, &this->output_bss_, v, pshndx - SELECT_SIZE_ENDIAN(size, big_endian)); + v = this->write_section_headers_list + SELECT_SIZE_ENDIAN_NAME(size, big_endian) ( + secnamepool, &this->output_data_, v, pshndx + SELECT_SIZE_ENDIAN(size, big_endian)); + v = this->write_section_headers_list + SELECT_SIZE_ENDIAN_NAME(size, big_endian) ( + secnamepool, &this->output_bss_, v, pshndx + SELECT_SIZE_ENDIAN(size, big_endian)); return v; } |