From 78551ba8324de2a892edb48c0705d9d0624009b4 Mon Sep 17 00:00:00 2001 From: uz Date: Fri, 19 Aug 2011 20:58:14 +0000 Subject: [PATCH] Read segment sizes as var, no longer as 32 bit values. git-svn-id: svn://svn.cc65.org/cc65/trunk@5235 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/od65/dump.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/od65/dump.c b/src/od65/dump.c index 12ab80c60..1025f6c28 100644 --- a/src/od65/dump.c +++ b/src/od65/dump.c @@ -484,7 +484,7 @@ void DumpObjSegments (FILE* F, unsigned long Offset) unsigned long NextSeg = ftell (F) + DataSize; const char* Name = GetString (&StrPool, ReadVar (F)); unsigned Len = strlen (Name); - unsigned long Size = Read32 (F); + unsigned long Size = ReadVar (F); unsigned Align = (1U << Read8 (F)); unsigned char AddrSize = Read8 (F); unsigned long FragCount = ReadVar (F); @@ -545,7 +545,7 @@ void DumpObjImports (FILE* F, unsigned long Offset) unsigned Len = strlen (Name); /* Skip both line info lists */ - SkipLineInfoList (F); + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -615,7 +615,7 @@ void DumpObjExports (FILE* F, unsigned long Offset) } /* Skip both line infos lists */ - SkipLineInfoList (F); + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -703,7 +703,7 @@ void DumpObjDbgSyms (FILE* F, unsigned long Offset) } /* Skip both line info lists */ - SkipLineInfoList (F); + SkipLineInfoList (F); SkipLineInfoList (F); /* Print the header */ @@ -920,7 +920,7 @@ void DumpObjSegSize (FILE* F, unsigned long Offset) unsigned long NextSeg = ftell (F) + DataSize; const char* Name = GetString (&StrPool, ReadVar (F)); unsigned Len = strlen (Name); - unsigned long Size = Read32 (F); + unsigned long Size = ReadVar (F); /* Skip alignment, type and fragment count */ (void) Read8 (F); @@ -940,4 +940,4 @@ void DumpObjSegSize (FILE* F, unsigned long Offset) - + -- 2.39.5