[U-Boot-Users] Question about GNU linker usage

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<symbol_name> which is legal for LDFLAGS.
Try to provide a log that shows how commands are being executed for the u-boot target.
L8rZ.
participants (2)
-
"SYLee"
-
Leon KUKOVEC