diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-09-08 20:08:14 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-09-08 20:08:14 +0000 |
commit | 33dbc70199dfdc441e7f8d5f4c3d8a732e59a640 (patch) | |
tree | 4977887f71578a81091a6970536ab815d33c09f1 /gold/script-sections.cc | |
parent | 824308520bc62a9a5f72d89c7c821183e34f39f6 (diff) | |
download | gdb-33dbc70199dfdc441e7f8d5f4c3d8a732e59a640.zip gdb-33dbc70199dfdc441e7f8d5f4c3d8a732e59a640.tar.gz gdb-33dbc70199dfdc441e7f8d5f4c3d8a732e59a640.tar.bz2 |
2010-09-08 Rafael Espindola <espindola@google.com>
* script-sections.cc (Script_sections::add_memory_region): Convert
field precision to int.
* script.cc (script_set_section_region, script_set_section_region):
Convert field precision to int.
Diffstat (limited to 'gold/script-sections.cc')
-rw-r--r-- | gold/script-sections.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 8183bf2..1a19ad8 100644 --- a/gold/script-sections.cc +++ b/gold/script-sections.cc @@ -2788,7 +2788,8 @@ Script_sections::add_memory_region(const char* name, size_t namelen, this->memory_regions_ = new Memory_regions(); else if (this->find_memory_region(name, namelen)) { - gold_error (_("region '%.*s' already defined"), namelen, name); + gold_error (_("region '%.*s' already defined"), static_cast<int>(namelen), + name); // FIXME: Add a GOLD extension to allow multiple regions with the same // name. This would amount to a single region covering disjoint blocks // of memory, which is useful for embedded devices. |