| Index: src/common/module.cc
|
| diff --git a/src/common/module.cc b/src/common/module.cc
|
| index fa798f48dc33399445da4e52a723982120bd05dd..b5fcb6239dc87ef4d0557952e02adcf1870c0b62 100644
|
| --- a/src/common/module.cc
|
| +++ b/src/common/module.cc
|
| @@ -49,11 +49,13 @@ using std::hex;
|
|
|
|
|
| Module::Module(const string &name, const string &os,
|
| - const string &architecture, const string &id) :
|
| + const string &architecture, const string &id,
|
| + const string &code_id /* = "" */) :
|
| name_(name),
|
| os_(os),
|
| architecture_(architecture),
|
| id_(id),
|
| + code_id_(code_id),
|
| load_address_(0) { }
|
|
|
| Module::~Module() {
|
| @@ -235,6 +237,10 @@ bool Module::Write(std::ostream &stream, SymbolData symbol_data) {
|
| if (!stream.good())
|
| return ReportError();
|
|
|
| + if (!code_id_.empty()) {
|
| + stream << "INFO CODE_ID " << code_id_ << endl;
|
| + }
|
| +
|
| if (symbol_data != ONLY_CFI) {
|
| AssignSourceIds();
|
|
|
|
|