2011-06-10 09:27:49     objcopy

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

2011-06-10 09:27:49     objcopy

nive n (INDIA)

Message: 101180   

 

Hi,

 

We are using .so file in our application. In this .so file some sections are mapped to L1 (shown below).

 

  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al

 

  [32] .l1.data          PROGBITS        ff700000 016000 002d48 00  WA  0   0  4

  [33] .l1.text          PROGBITS        ffa00000 019000 0045e0 00  AX  0   0  8

 

When we tried to load the application, it results in error saying "L1 allocation failed" for that .so file.  As we cannot free L1 memory further, we thought of  relocating those L1 sections to sdram.

 

As we dont have sources for the library(.so file), we tried using the following command,

 

     bfin-linux-uclibc-objcopy --change-section-address .l1.data=0x21000 libdec.so libtest.so

 

but the application crashes when accessing the library functions.

 

We are not sure of choosing the relocating address (.l1.data=0x21000).

 

Kindly let us know what should be the relocating address and how to choose it?

 

1.txt

QuoteReplyEditDelete

 

 

2011-06-10 09:31:31     Re: objcopy

nive n (INDIA)

Message: 101181   

 

We have also attached the section headers output from the readelf command for the library(.so file) for the previous thread.

QuoteReplyEditDelete

 

 

2011-06-10 10:22:02     Re: objcopy

Mike Frysinger (UNITED STATES)

Message: 101185   

 

what you're doing is not supported.  rebuild the .so without the L1 markings.

Attachments

Outcomes