From: Tomislav J. <tj...@gm...> - 2012-01-18 09:00:58
|
On Wed, Jan 18, 2012 at 3:04 AM, Stefan Monnier <mo...@ir...> wrote: > I've compiled the µMPS2 simulator (from Git) as well as the gcc > cross-compiler (4.6.2) for my class, and it works fine for the hello > world example, but when I try to compile the `termio' example I get the > following error message: > > [...] > umps2-elf2umps -k kernel > Warning: unknown program header table entry 1 > umps2-elf2umps: Missing .text program header > make: *** [kernel.core.umps] Erreur 1 > % > > Any idea what might be going on? For one thing, the `termio' example was using the old (deprecated) linker script, unlike the hello one. It's very much possible (indeed, it is likely) that it is unsuitable for newer toolchains (e.g. 4.x). I have now aligned the two Makefiles. Still, could you please post the output of `readelf -hlS kernel'? Also, are you using a plain ELF toolchain (i.e. mipsel-elf) or a Linux/ELF one (mipsel-linux)? -- Tomislav Jonjic |