<html>
<head>
<title></title>
</head>
<body>
Hi..
<br>
<br>
Currently I've been looking into the Makefile of $(TOPDIR)
<br>
At final build stage, gnu linker links all objects and produce
<br>
the u-boot by the following Makefile target rule:
<br>
<br>
u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
<br>
UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) | sed -n -e
<br>
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
<br>
$(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
<br>
--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
<br>
-Map u-boot.map -o u-boot
<br>
<br>
The value of $(LDFLAGS) variable ends "-n" and UNDEF_SYM is undefined symbol
<br>
name list. Can the undefined symbol names be the non-option argument of gnu ld?
<br>
According to manual page or info, I haven't found any mention of it.
<br>
<br>
Do I misunderstand at some point about usage of ld?
<br>
And what usage is the undefined symbols? For what are they useful?
<br>
If anyone have a answer please let me know.
<br>
<br>
Thanks.
<br>
<br>
<!-- Empal Slogan Start -->
<hr noshade size=1 width=590 align=left>
<font style="font-size:9pt">Get your own 200MB free email at <a href="http://mail.empas.com" target="new_win1">http://www.empal.com</a><br>
<!-- Empal Slogan End -->
</body>
</html>