[#6456] ld for bfin can not support to put code into separate segment in trunk

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

[#6456] ld for bfin can not support to put code into separate segment in trunk

Submitted By: Vivi Li

Open Date

2011-01-20 03:51:12     Close Date

2011-09-05 09:29:46

Priority:

Medium High     Assignee:

Vivi Li

David Gibson

Mingquan Pan

Steve Kilbane

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Duplicate     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2011R1

Is this bug repeatable?:

N/A     

Summary: ld for bfin can not support to put code into separate segment in trunk

Details:

 

ld for bfin can not support to put code into separate segment in toolchain trunk.

 

This feature is still supported in toolchain svn revision 5057. In svn revision 5080, toolchain fails to support it.

 

Bellow is the error log when make in uclinux-dist/testsuites/l1_app:

--

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/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: unrecognized option '--sep-code'

/opt/uClinux/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

 

--- Mike Frysinger                                           2011-01-20 13:02:39

i forgot to add this back in after merging 2.21.  i waited until after the 2.21

release to merge into mainline.

 

should be OK now.

 

--- Vivi Li                                                  2011-06-08 05:59:30

I don't see this case pass in regression. So re-open it.

 

--- Mike Frysinger                                           2011-06-08 09:39:11

i doubt you're seeing the same error.  please post the actual output.

 

--- Vivi Li                                                  2011-06-08 23:48:54

Bellow is the latest log. I think they are the same. You can try to build source

files in uclinux-dist/testsuites/l1_app with latest toolchain.

 

--

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/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld:

unrecognized option '--sep-code'

/opt/uClinux/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

--

 

--- Mike Frysinger                                           2011-06-08 23:59:50

i re-added the --{data,code}-in-l1 options and committed those upstream

 

the --sep-code option is something else and needs to be tracked down, so that

can be tackled by the guys in Edinburgh

 

--- Stuart Henderson                                         2011-09-05 09:29:46

Marking as duplicate of [#6780] and closing.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes