You can save few kilobytes by stripping MorphOS executables:
Ram Disk:eGame> objdump eGame_MorphOS --headers
eGame_MorphOS: file format elf32-morphos
Sections: Idx Name Size VMA LMA File off Algn 0 .text 00099f24 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .rodata 00006d20 00000000 00000000 00099f58 2**3 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA 2 .ctdt 00000048 00000000 00000000 000a0c78 2**2 CONTENTS, ALLOC, LOAD, RELOC, DATA 3 .sdata2 00000000 00000000 00000000 000a0cc0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .data 00007590 00000000 00000000 000a0cc0 2**3 CONTENTS, ALLOC, LOAD, RELOC, DATA 5 .ctors 00000004 00000000 00000000 000a8250 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 .dtors 00000004 00000000 00000000 000a8254 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .got 00000010 00000000 00000000 000a8258 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .sdata 00000218 00000000 00000000 000a8268 2**3 CONTENTS, ALLOC, LOAD, RELOC, DATA 9 .sbss 00000138 00000000 00000000 000a8480 2**2 ALLOC 10 .bss 000009ca 00000000 00000000 000a8480 2**2 ALLOC 11 .debug_aranges 000001b8 00000000 00000000 000a8480 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 12 .debug_pubnames 00000ad1 00000000 00000000 000a8638 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 13 .debug_info 000080b5 00000000 00000000 000a9109 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 14 .debug_abbrev 00000d02 00000000 00000000 000b11be 2**0 CONTENTS, READONLY, DEBUGGING 15 .debug_line 000024ab 00000000 00000000 000b1ec0 2**0 CONTENTS, RELOC, READONLY, DEBUGGING 16 .comment 00000ffa 00000000 00000000 000b436b 2**0 CONTENTS, READONLY
Ram Disk:eGame> list eGame_MorphOS eGame_MorphOS 968056 ----rwed Torstai 18:32:26 1 file - 968056 bytes used Ram Disk:eGame> strip --strip-all --strip-unneeded --remove-section .comment eGame_MorphOS Ram Disk:eGame> list eGame_MorphOS eGame_MorphOS 896344 ----rwed T�n��n 13:31:02 1 file - 896344 bytes used
Ram Disk:eGame> objdump eGame_MorphOS --headers
eGame_MorphOS: file format elf32-morphos
Sections: Idx Name Size VMA LMA File off Algn 0 .text 00099f24 00000000 00000000 00000034 2**2 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .rodata 00006d20 00000000 00000000 00099f58 2**3 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA 2 .ctdt 00000048 00000000 00000000 000a0c78 2**2 CONTENTS, ALLOC, LOAD, RELOC, DATA 3 .sdata2 00000000 00000000 00000000 000a0cc0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .data 00007590 00000000 00000000 000a0cc0 2**3 CONTENTS, ALLOC, LOAD, RELOC, DATA 5 .ctors 00000004 00000000 00000000 000a8250 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 .dtors 00000004 00000000 00000000 000a8254 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .got 00000010 00000000 00000000 000a8258 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .sdata 00000218 00000000 00000000 000a8268 2**3 CONTENTS, ALLOC, LOAD, RELOC, DATA 9 .sbss 00000138 00000000 00000000 000a8480 2**2 ALLOC 10 .bss 000009ca 00000000 00000000 000a8480 2**2 ALLOC
This strip command (ppc-morphos-strip) removes sections not required to run this executable. They are useful when debugging and it is good idea keep unstripped executable for debugging purposes. _________________ Amiga Developer Amiga 500, Efika, Mac Mini and PowerBook
|