From: uz Date: Tue, 27 Dec 2011 22:56:39 +0000 (+0000) Subject: Small changes for arbitrary alignment in object files. X-Git-Tag: V2.13.3~129 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2a18b0dd1d6ad481462954727cdb2be31c05c786;p=cc65 Small changes for arbitrary alignment in object files. git-svn-id: svn://svn.cc65.org/cc65/trunk@5335 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/od65/dump.c b/src/od65/dump.c index e4ebcff7a..66af0b543 100644 --- a/src/od65/dump.c +++ b/src/od65/dump.c @@ -499,7 +499,7 @@ void DumpObjSegments (FILE* F, unsigned long Offset) const char* Name = GetString (&StrPool, ReadVar (F)); unsigned Len = strlen (Name); unsigned long Size = ReadVar (F); - unsigned Align = (1U << Read8 (F)); + unsigned long Align = ReadVar (F); unsigned char AddrSize = Read8 (F); unsigned long FragCount = ReadVar (F); @@ -509,7 +509,7 @@ void DumpObjSegments (FILE* F, unsigned long Offset) /* Print the data */ printf (" Name:%*s\"%s\"\n", (int)(24-Len), "", Name); printf (" Size:%26lu\n", Size); - printf (" Alignment:%21u\n", Align); + printf (" Alignment:%21lu\n", Align); printf (" Address size:%14s0x%02X (%s)\n", "", AddrSize, AddrSizeToStr (AddrSize)); printf (" Fragment count:%16lu\n", FragCount); @@ -930,7 +930,7 @@ void DumpObjSegSize (FILE* F, unsigned long Offset) unsigned long Size = ReadVar (F); /* Skip alignment, type and fragment count */ - (void) Read8 (F); + (void) ReadVar (F); (void) Read8 (F); (void) ReadVar (F);