On Thu, Feb 10, 2005 at 07:39:23PM +0100, Blaisorblade wrote: > 3) I don't understand how vmlinux.lds.S is created... it's a symlink, but > it's > created nowhere after the patch - maybe I overlook something, maybe you > didn't do "make clean" and retest.
Not a symlink anymore. It's right there in the patch - +#include <linux/config.h> +#ifdef CONFIG_LD_SCRIPT_STATIC +#include "uml.lds.S" +#else +#include "dyn.lds.S" +#endif and it gives you want you want without any symlinks. And it will get a dependency (see .vmlinux.lds.cmd after build) on the right things: deps_arch/um/kernel/vmlinux.lds := \ /home/users/al/kernel/RC11-rc3-bk6-current/arch/um/kernel/vmlinux.lds.S \ $(wildcard include/config/ld/script/static.h) \ /home/users/al/kernel/RC11-rc3-bk6-current/include/linux/config.h \ $(wildcard include/config/h.h) \ /home/users/al/kernel/RC11-rc3-bk6-current/arch/um/kernel/uml.lds.S \ /home/users/al/kernel/RC11-rc3-bk6-current/include/asm-generic/vmlinux.lds.h \ include2/asm/common.lds.S \ It gets rebuilt if vmlinux.lds.S changes or uml.lds.S changes or CONFIG_LD_SCRIPT_STATIC gets changed. That was from build with LD_SCRIPT_STATIC; turn it off and that will a) trigger rebuild of vmlinux.lds (include/config/ld/script/static.h dependency will take care of that) b) replace dependency on uml.lds.S with that on dyn.lds.S. No need to mess with symlinks, these files are going through preprocessor anyway, so we have #ifdef and #include... ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel