From 33dbc70199dfdc441e7f8d5f4c3d8a732e59a640 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Wed, 8 Sep 2010 20:08:14 +0000 Subject: [PATCH] 2010-09-08 Rafael Espindola * 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. --- gold/ChangeLog | 7 +++++++ gold/script-sections.cc | 3 ++- gold/script.cc | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index c5f3bda1ee3..503a653b90b 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,10 @@ +2010-09-08 Rafael Espindola + + * 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. + 2010-09-08 Rafael Espindola * arm.cc (do_finalize_sections): Create the __exidx_start and diff --git a/gold/script-sections.cc b/gold/script-sections.cc index 8183bf2d3ff..1a19ad86304 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(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. diff --git a/gold/script.cc b/gold/script.cc index 300b19b783a..b92f85cb923 100644 --- a/gold/script.cc +++ b/gold/script.cc @@ -3231,7 +3231,7 @@ script_set_section_region(void* closurev, const char* name, size_t namelen, gold_error(_("%s:%d:%d: MEMORY region '%.*s' referred to outside of " "SECTIONS clause"), closure->filename(), closure->lineno(), closure->charpos(), - namelen, name); + static_cast(namelen), name); return; } @@ -3241,7 +3241,7 @@ script_set_section_region(void* closurev, const char* name, size_t namelen, { gold_error(_("%s:%d:%d: MEMORY region '%.*s' not declared"), closure->filename(), closure->lineno(), closure->charpos(), - namelen, name); + static_cast(namelen), name); return; } -- 2.30.2