diff options
author | Ian Lance Taylor <iant@google.com> | 2006-12-01 16:58:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-12-01 16:58:12 +0000 |
commit | 6a4699867a44b59f726f108b489d4462d5ce9fa3 (patch) | |
tree | 031431ff82d32f0285b4797c492ecc146f5b6949 /gold/symtab.cc | |
parent | 16649710df23ad9038e0057035882a92e783f7e6 (diff) | |
download | gdb-6a4699867a44b59f726f108b489d4462d5ce9fa3.zip gdb-6a4699867a44b59f726f108b489d4462d5ce9fa3.tar.gz gdb-6a4699867a44b59f726f108b489d4462d5ce9fa3.tar.bz2 |
gcc 3.2.2 portability hacks.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index 21192c1..ededad3 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1275,7 +1275,9 @@ Symbol_table::sized_write_globals(const Target*, if (sym_index != -1U) { - this->sized_write_symbol<size, big_endian>(sym, shndx, sympool, ps); + this->sized_write_symbol SELECT_SIZE_ENDIAN_NAME(size, big_endian) ( + sym, shndx, sympool, ps + SELECT_SIZE_ENDIAN(size, big_endian)); ps += sym_size; } @@ -1284,7 +1286,9 @@ Symbol_table::sized_write_globals(const Target*, dynsym_index -= first_dynamic_global_index; gold_assert(dynsym_index < dynamic_count); unsigned char* pd = dynamic_view + (dynsym_index * sym_size); - this->sized_write_symbol<size, big_endian>(sym, shndx, dynpool, pd); + this->sized_write_symbol SELECT_SIZE_ENDIAN_NAME(size, big_endian) ( + sym, shndx, dynpool, pd + SELECT_SIZE_ENDIAN(size, big_endian)); } } @@ -1303,7 +1307,8 @@ void Symbol_table::sized_write_symbol(Sized_symbol<size>* sym, unsigned int shndx, const Stringpool* pool, - unsigned char* p) const + unsigned char* p + ACCEPT_SIZE_ENDIAN) const { elfcpp::Sym_write<size, big_endian> osym(p); osym.put_st_name(pool->get_offset(sym->name())); |