2009-10-16 Doug Kwan <dougkwan@google.com>
* output.cc (Output_segment::set_section_list_address): Cast expressions to unsigned long long type to avoid format warnings.
This commit is contained in:
parent
5d0c4f10ec
commit
64b1ae3731
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-10-16 Doug Kwan <dougkwan@google.com>
|
||||
|
||||
* output.cc (Output_segment::set_section_list_address): Cast
|
||||
expressions to unsigned long long type to avoid format warnings.
|
||||
|
||||
2009-10-15 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
* script.cc (Script_options::add_symbol_assignment): Always add a
|
||||
|
|
|
@ -3503,15 +3503,20 @@ Output_segment::set_section_list_addresses(const Layout* layout, bool reset,
|
|||
else
|
||||
{
|
||||
Output_section* os = (*p)->output_section();
|
||||
|
||||
// Cast to unsigned long long to avoid format warnings.
|
||||
unsigned long long previous_dot =
|
||||
static_cast<unsigned long long>(addr + (off - startoff));
|
||||
unsigned long long dot =
|
||||
static_cast<unsigned long long>((*p)->address());
|
||||
|
||||
if (os == NULL)
|
||||
gold_error(_("dot moves backward in linker script "
|
||||
"from 0x%llx to 0x%llx"),
|
||||
addr + (off - startoff), (*p)->address());
|
||||
"from 0x%llx to 0x%llx"), previous_dot, dot);
|
||||
else
|
||||
gold_error(_("address of section '%s' moves backward "
|
||||
"from 0x%llx to 0x%llx"),
|
||||
os->name(), addr + (off - startoff),
|
||||
(*p)->address());
|
||||
os->name(), previous_dot, dot);
|
||||
}
|
||||
}
|
||||
(*p)->set_file_offset(off);
|
||||
|
|
Loading…
Add table
Reference in a new issue