Esempio n. 1
0
        public void Save(string outputFile, LinkerInfoFormat format, uint offset)
        {
            foreach (string labelKeys in Labels.Keys.ToArray())
            {
                AddressItem item = Labels[labelKeys];
                item.Address     += offset;
                Labels[labelKeys] = item;
            }

            foreach (string labelKeys in DataSectionHeader.Keys.ToArray())
            {
                AddressItem item = DataSectionHeader[labelKeys];
                item.Address += offset;
                DataSectionHeader[labelKeys] = item;
            }

            bool saveSource = (format & LinkerInfoFormat.IncludeSource) != 0;

            if ((format & LinkerInfoFormat.Xml) != 0)
            {
                SaveXml(outputFile + ".linkerxml", saveSource);
            }
            else
            {
                SaveText(outputFile + ".linkertext", saveSource);
            }
        }
Esempio n. 2
0
 public void Save(string outputFile, LinkerInfoFormat format)
 {
     Save(outputFile, format, 0);
 }