Do you have a question? Post it now! No Registration Necessary
July 13, 2004, 1:59 am

Hi..
Currently I've been looking into the Makefile of bootloader "DAS
U-Boot".
At final build stage, gnu linker links all object and produce
the u-boot by the following Makefile target rule:
u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | sed -n -e
's/.*\(__u_boot_cmd_.*\)/-u/p'|sort|uniq`;\
$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
-Map u-boot.map -o u-boot
$(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.
Do I misunderstand at some point about usage of ld?
If anyone have a answer please let me know.
Thanks.
Currently I've been looking into the Makefile of bootloader "DAS
U-Boot".
At final build stage, gnu linker links all object and produce
the u-boot by the following Makefile target rule:
u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | sed -n -e
's/.*\(__u_boot_cmd_.*\)/-u/p'|sort|uniq`;\
$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
-Map u-boot.map -o u-boot
$(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.
Do I misunderstand at some point about usage of ld?
If anyone have a answer please let me know.
Thanks.
Site Timeline
- » ELF -> OMF
- — Next thread in » Embedded Linux
-
- » XFree86 Server using uclibc
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Replacement for 741
- — The site's Newest Thread. Posted in » Electronics Design
-