Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
|
|
|
|
Poster | Thread | itix
| |
Re: OS4 on Classics - mini-FAQ/Questions and Answers Posted on 23-Oct-2007 18:45:26
| | [ #1 ] |
| |
|
Elite Member |
Joined: 22-Dec-2004 Posts: 3398
From: Freedom world | | |
|
| @CodeSmith
Quote:
2) Page-aligining .text, .data, .rodata, etc. That can add up to 12KB to an executable size, assuming worst case and 4KB page size (best case it adds nothing)
|
You dont have to page align data and I dont see any reason why anyone would do that on Amiga. Loader can align hunks if needed.
Quote:
3) The Global Offset Table ELF uses to implement position independent code, which is normally only needed for shared libraries, but which is a requirement for all amiga binaries due to the single address space design of amigaos (doesn't the PPC instruction set allow native position independent code? I never understood why the ABI says you need a GOT when the architecture implements the feature natively)
|
Hmm? I dont think it GOT is used at all. On MorphOS and OS4, binaries are relocated using reloc tables found in separate hunks when it is loaded to memory.
The original Amiga executable file format also contains reloc information. WarpUp binaries also used EHF (extended hunk format, based on Amiga hunk format) for PPC binaries. Some developers used to think that ELFs are large because they simply didnt strip binaries (strip --remove-section=.comment *). With debug and other redundant information they get fairly large.
_________________ Amiga Developer Amiga 500, Efika, Mac Mini and PowerBook |
| Status: Offline |
| |
|
|
|
[ home ][ about us ][ privacy ]
[ forums ][ classifieds ]
[ links ][ news archive ]
[ link to us ][ user account ]
|