[Top][All Lists]

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

[Bug binutils/10111] New: sripe a .o using inline func, the armlink but

From: lijiyou at huawei dot com
Subject: [Bug binutils/10111] New: sripe a .o using inline func, the armlink but fail
Date: 29 Apr 2009 02:20:14 -0000

I download a binutils-2.19.1,and build an ARM version in cygwin by 
doing "./configure --target=arm-linux --prefix=/opt/armv6" first,then make.
Then I got a strip-new.exe

I use strip-new.exe to strip one .o file which the source file include inline 
function,and that inline function is also used by other source file
then I call armlink using the stripped .o file,but fail,it reports "Error: 
L6275E: COMMON section xxx.o(xxxxx) does not define <Anonymous Sy
mbol> (defined in xxxxxx.o(xxxxxx))"

The following is a sample how to reproduce my problem,the attach 
mytestfiles.rar is the files this sample uses.
my step is:
tcc  -c -cpu 5TEJ -apcs /interwork/ropi/norwpi -zo -littleend -g main.o main.c
tcc  -c -cpu 5TEJ -apcs /interwork/ropi/norwpi -zo -littleend -g test.o test.c
tcc  -c -cpu 5TEJ -apcs /interwork/ropi/norwpi -zo -littleend -g test2.o 
strip-new.exe -g test2.o -o test2-stripped.o
armlink -o main.elf main.o test.o test2-stripped.o

but fail,it reports:
Error: L6275E: COMMON section test.o(i.TestInline) does not define <Anonymous 
mbol> (defined in test2-stripped.o(i.TestInline))
Finished: 0 information, 0 warning and 1 error messages..

           Summary: sripe a .o using inline func,the armlink but fail
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: critical
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: lijiyou at huawei dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: make armlink
  GCC host triplet: cygwin
GCC target triplet: arm


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]