OSLib and ELF
John-Mark Bell
jmb202 at ecs.soton.ac.uk
Sat Feb 3 18:20:39 GMT 2007
On Sat, 3 Feb 2007, Tom Hughes wrote:
[ELF version of OSLib]
> It should just be a question of using an assembler that supports ELF and
> giving it the right options to produce an ELF object file instead of an AOF
> object file.
Correct. There's 2 ways of doing this:
1) Pass the -elf switch to the assembler supplied with GCCSDK 3.4.6
2) Make defmod output GNU AS syntax assembler and build with the GNU AS
supplied with (the as yet unreleased) GCCSDK 4.1.x
I produced a bunch of patches to do the latter some time ago, which John
Tytgat has updated to apply against OSLib head. Perhaps he'd like to put
them somewhere as my original patchset needs some work to apply now. I
should point out that the Makefile changes in particular were extremely
hacky. The GNU AS defmod backend was rather less so, however.
> I assume that the ELF toolchain is still using ALF files for static
> libraries, but just with ELF objects inside Dave?
No; it uses whatever archive format GNU AR produces for static libraries.
The ELF toolchain will be as close as possible to standard GCC toolchains
on other platforms (i.e. it'll be comprised of a standard binutils+GCC
setup). UnixLib will remain as the runtime library. See
http://gccsdk.riscos.info/ for more details.
John.
More information about the oslib-user
mailing list