Re: multiple object files

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

 



For any kernel modules use gcc option -O2
nk

Franz Reinhardt wrote:

> Hi,
>
> I'm coding a device driver that uses some generic function from a library
> (consist of some helper functions). For generating the module I used the
> following commands.
>         gcc -c $(CFLAGS) vip.c
>         ld -m elf_i386 -r -o lib.o vip.o gdk/gdk.a
>         mv lib.o vip.o
>
> If I try to load this module into the kernel, it is complaining about
> "unresolved symbol" of some of the library functions.
>
> Any ideas to solve this ?
> Any hint is greatly appreciated :-)
>
> TIA
>
> Franz
> -
> 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/

-
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