linker and crt0.o

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I want to use 'ld' to link object files. Followed the manuals of ld:
ld -o image /lib/crt0.o dodo getmem.o -lc

But there is no crt0.o in either /lib or /usr/lib. After I got rid of the 
'/lib/crt0.o' param, it displayed error:
ld: warning: cannot find entry symbol _start; defaulting to 08048190
getmem.o: In function 'main':
getmem.o(.text+0x7):undefined reference to 'get_memsize'
make: *** [all] Error 1

The environment is egcs-1.1.2, linux kernel 2.2.5.
I sure that get_memsize is defined in dodo.
I wonder whether crt0.o is needed. Which package does it belong to?













_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux