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

Leon KUKOVEC leon.kukovec at ultra.si
Thu Jul 15 08:01:55 CEST 2004

Hi SYLee,

SYLee wrote:

> 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 &quot-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.


Best Regards,

More information about the U-Boot mailing list