mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
gcc 3.2.2 portability hacks.
This commit is contained in:
parent
16649710df
commit
6a4699867a
@ -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()));
|
||||
|
@ -933,7 +933,8 @@ class Symbol_table
|
||||
template<int size, bool big_endian>
|
||||
void
|
||||
sized_write_symbol(Sized_symbol<size>*, unsigned int shndx,
|
||||
const Stringpool*, unsigned char* p) const;
|
||||
const Stringpool*, unsigned char* p
|
||||
ACCEPT_SIZE_ENDIAN) const;
|
||||
|
||||
// Write out a section symbol, specialized for size and endianness.
|
||||
template<int size, bool big_endian>
|
||||
|
Loading…
Reference in New Issue
Block a user