diff options
Diffstat (limited to 'gold/mapfile.cc')
-rw-r--r-- | gold/mapfile.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gold/mapfile.cc b/gold/mapfile.cc index e053419..3f1fe28 100644 --- a/gold/mapfile.cc +++ b/gold/mapfile.cc @@ -256,12 +256,10 @@ Mapfile::print_input_section(Relobj* relobj, unsigned int shndx) } else { - section_offset_type offset; - os = relobj->output_section(shndx, &offset); - if (offset == -1) - addr = ~0ULL; - else - addr = os->address() + offset; + os = relobj->output_section(shndx); + addr = relobj->output_section_offset(shndx); + if (addr != -1U) + addr += os->address(); } char sizebuf[50]; |