projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a member function to set a symbol's language
[deliverable/binutils-gdb.git]
/
gold
/
mapfile.cc
diff --git
a/gold/mapfile.cc
b/gold/mapfile.cc
index dc995e9a61ffbdce37ce8351c13a3ee2c412f517..907df97d042517d041686df630ac6af5550f3ada 100644
(file)
--- a/
gold/mapfile.cc
+++ b/
gold/mapfile.cc
@@
-1,6
+1,6
@@
// mapfile.cc -- map file generation for gold
// mapfile.cc -- map file generation for gold
-// Copyright (C) 2008-201
4
Free Software Foundation, Inc.
+// Copyright (C) 2008-201
9
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-258,8
+258,11
@@
Mapfile::print_input_section(Relobj* relobj, unsigned int shndx)
}
char sizebuf[50];
}
char sizebuf[50];
+ section_size_type size;
+ if (!relobj->section_is_compressed(shndx, &size))
+ size = relobj->section_size(shndx);
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
- static_cast<unsigned long long>(
relobj->section_size(shndx)
));
+ static_cast<unsigned long long>(
size
));
fprintf(this->map_file_, "0x%0*llx %10s %s\n",
parameters->target().get_size() / 4,
fprintf(this->map_file_, "0x%0*llx %10s %s\n",
parameters->target().get_size() / 4,
@@
-328,11
+331,13
@@
Mapfile::print_output_data(const Output_data* od, const char* name)
char sizebuf[50];
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
char sizebuf[50];
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
- static_cast<unsigned long long>(od->data_size()));
+ static_cast<unsigned long long>(od->
current_
data_size()));
fprintf(this->map_file_, "0x%0*llx %10s\n",
parameters->target().get_size() / 4,
fprintf(this->map_file_, "0x%0*llx %10s\n",
parameters->target().get_size() / 4,
- static_cast<unsigned long long>(od->address()),
+ (od->is_address_valid()
+ ? static_cast<unsigned long long>(od->address())
+ : 0),
sizebuf);
}
sizebuf);
}
@@
-387,7
+392,7
@@
Mapfile::print_output_section(const Output_section* os)
char sizebuf[50];
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
char sizebuf[50];
snprintf(sizebuf, sizeof sizebuf, "0x%llx",
- static_cast<unsigned long long>(os->data_size()));
+ static_cast<unsigned long long>(os->
current_
data_size()));
fprintf(this->map_file_, "0x%0*llx %10s",
parameters->target().get_size() / 4,
fprintf(this->map_file_, "0x%0*llx %10s",
parameters->target().get_size() / 4,
@@
-398,6
+403,9
@@
Mapfile::print_output_section(const Output_section* os)
parameters->target().get_size() / 4,
static_cast<unsigned long long>(os->load_address()));
parameters->target().get_size() / 4,
static_cast<unsigned long long>(os->load_address()));
+ if (os->requires_postprocessing())
+ fprintf(this->map_file_, " (before compression)");
+
putc('\n', this->map_file_);
}
putc('\n', this->map_file_);
}
This page took
0.035658 seconds
and
4
git commands to generate.