[#6073] Simple bfin-elf c++ exceptions app runs out of space on bf548

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

[#6073] Simple bfin-elf c++ exceptions app runs out of space on bf548

Submitted By: David Gibson

Open Date

2010-06-22 09:19:01     Close Date

2013-05-24 01:38:44

Priority:

Medium     Assignee:

Nobody

Board:

N/A     Silicon Revision:

Resolution:

Rejected     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

Ubuntu 9.10 (32 bit)

toolchain rev.:

4637     kernel rev.:

State:

Closed     Found In Release:

snaps

Is this bug repeatable?:

yes     

Summary: Simple bfin-elf c++ exceptions app runs out of space on bf548

Details:

 

Taking the testcase:

 

 

int main()

{

  try { throw "foo"; }

  catch ( ... ) { } ;

}

 

And compiling it with:

 

     bfin-elf-g++ -mcpu=bf548 lpr5974.cc -g -static

 

I get the following errors from the linker:

 

<-- warnings about unimplemented functions removed

----->

 

/home/dgibso2/gnu_work/checkouts/toolchain/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/bin/ld.real: region MEM_L1_CODE is full (a.out section .text)

/home/dgibso2/gnu_work/checkouts/toolchain/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/bin/ld.real: region MEM_L1_CODE is full (a.out section .text)

/home/dgibso2/gnu_work/checkouts/toolchain/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/bin/ld.real: section .init [ffa00000 -> ffa00011] overlaps section .text [ffa00000 -> ffa0957f]

/home/dgibso2/gnu_work/checkouts/toolchain/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/bin/ld.real: a.out: section .text lma 0xffa00000 overlaps previous sections

/home/dgibso2/gnu_work/checkouts/toolchain/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/bin/ld.real: a.out: section .fini lma 0xffa00012 overlaps previous sections

collect2: ld returned 1 exit status

 

I would have expected it to link out of the box.

 

Follow-ups

 

--- Robin Getz                                               2010-06-22 09:20:15

>I would have expected it to link out of the box.

 

Nope. If you fill up L1 with internal gcc libs - then it's going to die.

 

You need to write a custom linker script.

 

It's just easier to use the Linux toolchains.

 

-Robin

 

--- Mingquan Pan                                             2013-05-24 02:49:08

close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes