[#6780] --sep-code option is not supported

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

[#6780] --sep-code option is not supported

Submitted By: Aaron Wu

Open Date

2011-09-05 04:08:59     Close Date

2011-09-20 22:23:04

Priority:

Medium     Assignee:

Vivi Li

Mingquan Pan

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

Ubuntu 10.04

toolchain rev.:

SVN 5455     kernel rev.:

2.6.34.7

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

yes     

Summary: --sep-code option is not supported

Details:

 

When trying to build the l1_app test in uClinux distribution 2010R1 in testsuites/l1_app, found the --sep-code option is not supported for toolchain version SVN 5455, while for SVN 5013 it compiles fine.

 

Error info:

 

make

bfin-linux-uclibc-gcc -shared -o libhelloworld.so helloworld.c -fno-jump-tables -mfdpic -Wl,--sep-code -Wl,--code-in-l1 -Wl,-z -Wl,now -Wl,--data-in-l1

/opt/uClinux.2011_Jul_25/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: unrecognized option '--sep-code'

/opt/uClinux.2011_Jul_25/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: use the --help option for usage information

collect2: ld returned 1 exit status

make: *** [libhelloworld] Error 1

 

Follow-ups

 

--- Stuart Henderson                                         2011-09-05 09:28:23

this was never brought forward from 2.17.  i'm added it now.

 

marked as fixed.

 

--- Vivi Li                                                  2011-09-14 03:26:04

I make in l1_app folder with latest trunk, and I got following message:

--

/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld:

fde encoding in /tmp/cc2QwCGY.o(.eh_frame) prevents .eh_frame_hdr table being

created.

--

 

I never get this kind of message before.

 

--- Stuart Henderson                                         2011-09-14 07:00:37

this is a warning new to binutils 2.21 and isn't a sign of a regression.

 

--- Vivi Li                                                  2011-09-15 05:55:09

OK, I've updated test script.

 

--- Mingquan Pan                                             2011-09-20 22:23:04

Yes, with the trunk head toolchain, l1 app test can pass now.

 

root:/> ^[[6nversion^M

kernel:    Linux release 3.0.0-ADI-2011R1-pre-svn10085, build #24 Tue Sep 20

18:29:16 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5683) ^M

user-dist: release svn-10403, build #301 Tue Sep 20 18:28:09 CST 2011^M

root:/> ^[[6nsuccessful boot attempt

************** STEP 3: Start testing.

 

ifconfig eth0 10.100.4.50 up^M

root:/> ^[[6n

PASS: Clean src directory

spawn make^M

bfin-linux-uclibc-gcc -shared -o libhelloworld.so helloworld.c -fno-jump-tables

-mfdpic -Wl,--sep-code -Wl,--code-in-l1 -Wl,-z -Wl,now -Wl,--data-in-l1^M

bfin-linux-uclibc-gcc -pie -o test_helloworld test_helloworld.c -lhelloworld

-L./ -fno-jump-tables -mfdpic^M

bfin-linux-uclibc-g++ -shared -o libhelloworldcpp.so helloworld.cpp

-fno-jump-tables -mfdpic^M

/opt/uClinux.2011R1-branch/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld:

fde encoding in /tmp/ccSKXgaS.o(.eh_frame) prevents .eh_frame_hdr table being

created.^M

bfin-linux-uclibc-g++ -o test_helloworldcpp test_helloworld.cpp -lhelloworldcpp

-L./ -fno-jump-tables -mfdpic^M

 

PASS: Build test program

 

Case 2 ...PASS

 

Case 2 ...PASS

 

PASS: Copy libhelloworld.so to target board

 

PASS: Copy libhelloworldcpp.so to target board

 

PASS: Copy test_helloworld to target board

 

taskset 1 ./test_helloworld^M

hello^M

[INS] get 2 from helloworld(0xffa01bd0):        TEST PASS^M

[INS] get 11 from testl1(0xffa0194c):   TEST PASS^M

[DATA] global data ret at 0xff800000:   TEST PASS^M

[INS] main at 0x2a4a970:        TEST PASS^M

root:/> ^[[6n

Case 4 ...PASS

 

So close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes