Renamed .dynsm to .sym

It's not exactly an ELF binary, and it's called sym in SMS so I may as
well stay consistent.
This commit is contained in:
arookas 2016-03-02 02:02:53 -05:00
parent cdda059187
commit 164feee319
2 changed files with 9 additions and 9 deletions

View file

@ -44,8 +44,8 @@ namespace arookas {
if (sSettings.OutputData) {
WriteData();
}
if (sSettings.OutputDynsym) {
WriteDynsym();
if (sSettings.OutputSym) {
WriteSym();
}
if (sSettings.OutputBss) {
WriteBss();
@ -198,9 +198,9 @@ namespace arookas {
}
sWriter.WriteLine();
}
static void WriteDynsym() {
Console.WriteLine("Outputting .dynsym...");
sWriter.WriteLine(".dynsym");
static void WriteSym() {
Console.WriteLine("Outputting .sym...");
sWriter.WriteLine(".sym");
sReader.Goto(sDynsymOffset);
for (int i = 0; i < sDynsymCount; ++i) {
var symbol = new Symbol(sReader);

View file

@ -4,14 +4,14 @@ using System.IO;
namespace arookas {
class CommandLineSettings {
string mInput, mOutput;
bool mOutputHeader, mOutputText, mOutputData, mOutputDynsym, mOutputBss;
bool mOutputHeader, mOutputText, mOutputData, mOutputSym, mOutputBss;
public string Input { get { return mInput; } }
public string Output { get { return mOutput; } }
public bool OutputHeader { get { return mOutputHeader; } }
public bool OutputText { get { return mOutputText; } }
public bool OutputData { get { return mOutputData; } }
public bool OutputDynsym { get { return mOutputDynsym; } }
public bool OutputSym { get { return mOutputSym; } }
public bool OutputBss { get { return mOutputBss; } }
public CommandLineSettings(aCommandLine cmd) {
@ -28,8 +28,8 @@ namespace arookas {
case "-t": mOutputText = false; continue;
case "-D": mOutputData = true; continue;
case "-d": mOutputData = false; continue;
case "-S": mOutputDynsym = true; continue;
case "-s": mOutputDynsym = false; continue;
case "-S": mOutputSym = true; continue;
case "-s": mOutputSym = false; continue;
case "-B": mOutputBss = true; continue;
case "-b": mOutputBss = false; continue;
}