From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon KUKOVEC Date: Thu, 15 Jul 2004 08:01:55 +0200 Subject: [U-Boot-Users] Question about GNU linker usage In-Reply-To: <20040715100157.40f5d78500066b810053c837.189@empal.com> References: <20040715100157.40f5d78500066b810053c837.189@empal.com> Message-ID: <40F61DD3.4080109@ultra.si> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi SYLee, SYLee wrote: [-snip-] > u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT) > UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | sed -n -e > 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ > $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ > --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \ > -Map u-boot.map -o u-boot > > The value of $(LDFLAGS) variable ends "-n" and UNDEF_SYM is undefined symbol > name list. Can the undefined symbol names be the non-option argument of gnu ld? > According to manual page or info, I haven't found any mention of it. My understanding is that you very likely do not have OBJDUMP in the PATH or set correctly which is causing UNDEF_SYM not to get defined. UNDEF_SYMBS actualy expands to -u which is legal for LDFLAGS. Try to provide a log that shows how commands are being executed for the u-boot target. L8rZ. -- Best Regards, Leon.