diff options
author | Chris Johns <chrisj@rtems.org> | 2012-10-19 12:42:39 -0700 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-10-19 12:42:39 -0700 |
commit | 25c377296b77c489f33ebf6ea6b7e869281fadbf (patch) | |
tree | 464747d1d20452992370b1ddfae9665e201aa8b1 | |
parent | c54ea723eefee5582e423933ae6f758d11ae7b1f (diff) |
Add back the libx.a file to the root file system.
-rw-r--r-- | shell-init | 4 | ||||
-rw-r--r-- | wscript | 9 | ||||
-rw-r--r-- | x-long-name-to-create-gnu-extension-in-archive.c | 10 |
3 files changed, 13 insertions, 10 deletions
@@ -1,4 +1,4 @@ #rtl-trace set all #rtl-trace set load load-sect symbol reloc unresolved -dlo libx.a:xa.c.2.o -dlo libx.a:x-long-name-to-create-gnu-extension-in-archive.c.2.o +dlo libx.a:xa.c.1.o +dlo libx.a:x-long-name-to-create-gnu-extension-in-archive.c.1.o @@ -60,11 +60,18 @@ def build(bld): defines = bld.defines, source = ['bspinit.c']) + bld(target = 'x', + features = 'c cstlib', + includes = bld.includes, + defines = bld.defines, + source = ['xa.c', + 'x-long-name-to-create-gnu-extension-in-archive.c']) + # # Create the root file system. # bld(target = 'fs-root.tar', - source = ['shell-init'], + source = ['shell-init', 'libx.a'], rule = 'tar cf - ${SRC} > ${TGT}') bld.objects(name = 'rootfs', target = 'fs-root-tarfile.o', diff --git a/x-long-name-to-create-gnu-extension-in-archive.c b/x-long-name-to-create-gnu-extension-in-archive.c index 38cf079..0280d99 100644 --- a/x-long-name-to-create-gnu-extension-in-archive.c +++ b/x-long-name-to-create-gnu-extension-in-archive.c @@ -8,20 +8,16 @@ static int zero; unsigned int public = 0x12345678; -void w_writeln(double d); +void w_writeln(float d); void x_writeln(const char* s); void y_writeln(const char* s) __attribute__ ((section (".bar"))); int z_writeln(int argc, const char* argv[]); int my_main (int argc, char* argv[]); -#if RTL_GSYM_EMBEDDED -#define sin(_d) (_d) -#endif - void -w_writeln(double d) +w_writeln(float d) { - printf ("sin(%f) = %f\n", d, sin(d)); + printf ("%f / 3 = %f\n", d / 3); } void |