Embedded primer question.
Oct. 11th, 2010 02:59 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I've been doing embedded development since 1999, but only occasionally. So I cannot consider myself a real expert here.
Now yet another time I wish if I had a tool that could help me with a very typical need:
I have an embedded x86 platform running a rather stripped version of Linux, with normal kernel but very few libs and e.g busybox or newlib instead of glibc. I have an app on real linux, which links dynamically with many other libs and modern version of glibc. I need to make it run on a target.
The usual course of action is to carefully re-compile the app and all dependencies for a target. However, it would be a killer app (or just a greatest method) if I could just creatively use binutils to recursively get symbols application exports, and link all of them to single static lib, up to glibc functions.
I think this is possible in theory to do such script, and I wonder why it was not done yet. May be because before host platform was usually x86, and target platform was something else? Now thanks to Atom it's x86 on both sides of JTAG cable very often. Or may be I am missing something and it was done, or I am missing something fundamental and there is something preventing this approach to succeed???
Now yet another time I wish if I had a tool that could help me with a very typical need:
I have an embedded x86 platform running a rather stripped version of Linux, with normal kernel but very few libs and e.g busybox or newlib instead of glibc. I have an app on real linux, which links dynamically with many other libs and modern version of glibc. I need to make it run on a target.
The usual course of action is to carefully re-compile the app and all dependencies for a target. However, it would be a killer app (or just a greatest method) if I could just creatively use binutils to recursively get symbols application exports, and link all of them to single static lib, up to glibc functions.
I think this is possible in theory to do such script, and I wonder why it was not done yet. May be because before host platform was usually x86, and target platform was something else? Now thanks to Atom it's x86 on both sides of JTAG cable very often. Or may be I am missing something and it was done, or I am missing something fundamental and there is something preventing this approach to succeed???