aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-21 02:00:16 +0000
committerAlan Modra <amodra@gmail.com>2013-03-21 02:00:16 +0000
commit117be58fad705e4df95c2e0bb2f3d46aa132eb20 (patch)
tree4cf3236018200fd0db73d441a1db85523b8ab882 /gold/layout.cc
parentaf307d6a5be2ede3aed5f5ca5d726658605fa783 (diff)
downloadgdb-117be58fad705e4df95c2e0bb2f3d46aa132eb20.zip
gdb-117be58fad705e4df95c2e0bb2f3d46aa132eb20.tar.gz
gdb-117be58fad705e4df95c2e0bb2f3d46aa132eb20.tar.bz2
* dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned
comparison warning. * layout.cc (Layout::create_dynamic_symtab): Avoid "may be used uninitialized" warning.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index faa8f71..4c48c3c 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -4158,7 +4158,7 @@ Layout::create_dynamic_symtab(const Input_objects* input_objects,
false,
ORDER_DYNAMIC_LINKER,
false);
-
+ *pdynstr = dynstr;
if (dynstr != NULL)
{
Output_section_data* strdata = new Output_data_strtab(&this->dynpool_);
@@ -4174,8 +4174,6 @@ Layout::create_dynamic_symtab(const Input_objects* input_objects,
odyn->add_section_address(elfcpp::DT_STRTAB, dynstr);
odyn->add_section_size(elfcpp::DT_STRSZ, dynstr);
}
-
- *pdynstr = dynstr;
}
// Create the hash tables.