* output.h: Formatting, whitespace.

This commit is contained in:
Alan Modra
2012-12-03 05:48:47 +00:00
parent ec661b9dca
commit 34171bc50f
2 changed files with 136 additions and 104 deletions

View File

@ -1,3 +1,7 @@
2012-12-03 Alan Modra <amodra@gmail.com>
* output.h: Formatting, whitespace.
i2012-12-03 Alan Modra <amodra@gmail.com>
* layout.h (Layout::get_executable_sections): Declare.

View File

@ -1570,14 +1570,19 @@ class Output_data_reloc<elfcpp::SHT_REL, dynamic, size, big_endian>
void
add_global(Symbol* gsym, unsigned int type, Output_data* od, Address address)
{ this->add(od, Output_reloc_type(gsym, type, od, address, false, false, false)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address,
false, false, false));
}
void
add_global(Symbol* gsym, unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address)
{ this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
false, false, false)); }
{
this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
false, false, false));
}
void
add_global_generic(Symbol* gsym, unsigned int type, Output_data* od,
@ -1608,8 +1613,10 @@ class Output_data_reloc<elfcpp::SHT_REL, dynamic, size, big_endian>
void
add_global_relative(Symbol* gsym, unsigned int type, Output_data* od,
Address address)
{ this->add(od, Output_reloc_type(gsym, type, od, address, true, true,
false)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address, true, true,
false));
}
void
add_global_relative(Symbol* gsym, unsigned int type, Output_data* od,
@ -1626,8 +1633,10 @@ class Output_data_reloc<elfcpp::SHT_REL, dynamic, size, big_endian>
void
add_symbolless_global_addend(Symbol* gsym, unsigned int type,
Output_data* od, Address address)
{ this->add(od, Output_reloc_type(gsym, type, od, address, false, true,
false)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address, false, true,
false));
}
void
add_symbolless_global_addend(Symbol* gsym, unsigned int type,
@ -1866,16 +1875,20 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
void
add_global(Symbol* gsym, unsigned int type, Output_data* od,
Address address, Addend addend)
{ this->add(od, Output_reloc_type(gsym, type, od, address, addend,
false, false, false)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address, addend,
false, false, false));
}
void
add_global(Symbol* gsym, unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address,
Addend addend)
{ this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, false, false, false)); }
{
this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, false, false, false));
}
void
add_global_generic(Symbol* gsym, unsigned int type, Output_data* od,
@ -1908,16 +1921,20 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
void
add_global_relative(Symbol* gsym, unsigned int type, Output_data* od,
Address address, Addend addend, bool use_plt_offset)
{ this->add(od, Output_reloc_type(gsym, type, od, address, addend, true,
true, use_plt_offset)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address, addend, true,
true, use_plt_offset));
}
void
add_global_relative(Symbol* gsym, unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address, Addend addend,
bool use_plt_offset)
{ this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, true, true, use_plt_offset)); }
{
this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, true, true, use_plt_offset));
}
// Add a global relocation which does not use a symbol for the relocation,
// but which gets its addend from a symbol.
@ -1925,16 +1942,21 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
void
add_symbolless_global_addend(Symbol* gsym, unsigned int type, Output_data* od,
Address address, Addend addend)
{ this->add(od, Output_reloc_type(gsym, type, od, address, addend,
false, true, false)); }
{
this->add(od, Output_reloc_type(gsym, type, od, address, addend,
false, true, false));
}
void
add_symbolless_global_addend(Symbol* gsym, unsigned int type,
Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address, Addend addend)
{ this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, false, true, false)); }
unsigned int shndx, Address address,
Addend addend)
{
this->add(od, Output_reloc_type(gsym, type, relobj, shndx, address,
addend, false, true, false));
}
// Add a reloc against a local symbol.
@ -2066,8 +2088,10 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
add_output_section(Output_section* os, unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address, Addend addend)
{ this->add(od, Output_reloc_type(os, type, relobj, shndx, address,
addend, false)); }
{
this->add(od, Output_reloc_type(os, type, relobj, shndx, address,
addend, false));
}
void
add_output_section_generic(Output_section* os, unsigned int type,
@ -2123,8 +2147,10 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
add_absolute(unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address, Addend addend)
{ this->add(od, Output_reloc_type(type, relobj, shndx, address, addend,
false)); }
{
this->add(od, Output_reloc_type(type, relobj, shndx, address, addend,
false));
}
// Add a relative relocation
@ -2137,8 +2163,10 @@ class Output_data_reloc<elfcpp::SHT_RELA, dynamic, size, big_endian>
add_relative(unsigned int type, Output_data* od,
Sized_relobj<size, big_endian>* relobj,
unsigned int shndx, Address address, Addend addend)
{ this->add(od, Output_reloc_type(type, relobj, shndx, address, addend,
true)); }
{
this->add(od, Output_reloc_type(type, relobj, shndx, address, addend,
true));
}
// Add a target specific relocation. A target which calls this must
// define the reloc_symbol_index and reloc_addend virtual functions.