[#5824] some kernel modules fail to link due to losing strcpy in trunk head

Document created by Aaronwu Employee on Sep 5, 2013
Version 1Show Document
  • View in full screen mode

[#5824] some kernel modules fail to link due to losing strcpy in trunk head

Submitted By: Barry Song

Open Date

2010-01-12 03:49:30     Close Date

2010-06-11 05:00:27

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc 4.3.4 (svn3771)

App binary format:

N/A     

Summary: some kernel modules fail to link due to losing strcpy in trunk head

Details:

 

some modules fail to link due to losing strcpy in trunk head, the log:

 

~/develop/svn/uclinux-dist/linux-2.6.x# make

  ...

  LD      vmlinux

  SYSMAP  System.map

  SYSMAP  .tmp_System.map

  OBJCOPY arch/blackfin/boot/vmlinux.bin

  GZIP    arch/blackfin/boot/vmlinux.bin.gz

  UIMAGE  arch/blackfin/boot/vmImage.gz

Image Name:   bf533-2.6.32.3-ADI-2010R1-pre

Created:      Tue Jan 12 16:34:26 2010

Image Type:   Blackfin Linux Kernel Image (gzip compressed)

Data Size:    1561018 Bytes = 1524.43 kB = 1.49 MB

Load Address: 00001000

Entry Point:  0032c790

  Building modules, stage 2.

  MODPOST 1131 modules

ERROR: "strcpy" [net/bluetooth/cmtp/cmtp.ko] undefined!

ERROR: "strcpy" [drivers/net/usb/hso.ko] undefined!

ERROR: "strcpy" [drivers/isdn/i4l/isdn.ko] undefined!

 

Follow-ups

 

--- Sonic Zhang                                              2010-01-12 05:58:45

This bug is introduced by Mike's commit 3879. Because string functions are both

inline and exported functions and folder arch/blackfin/lib is configured as a

library path in Makefile, symbols exported in this folder is not linked into

built-in.o but inlined only.

 

So, these string symbols should be exported in other folder, such as

arch/blackfin/kernel/bfin_ksyms.c

 

Fixed.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes