2008-09-24 06:07:07     I can not locate the special data in L1_data section on uclinux2008

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

2008-09-24 06:07:07     I can not locate the special data in L1_data section on uclinux2008

leo peng (AFGHANISTAN)

Message: 62624   

 

I give you code to analyse:  after compiled ,data don't  in L1_data section ,but  in SDRAM

 

data: unsigned short __attribute__ ((__section__(".data.l1_t"))) temp[5]={1,1,1,1,1};

 

vmlinux.lds:

 

#if L1_DATA_A_LENGTH

# define LDS_L1_A_DATA  *(.l1.data)

# define LDS_L1_A_BSS   *(.l1.bss)

# define LDS_L1_A_CACHE *(.data_l1.cacheline_aligned)

#else

# define LDS_L1_A_DATA

# define LDS_L1_A_BSS

# define LDS_L1_A_CACHE

#endif

.data_l1 L1_DATA_A_START : AT(LOADADDR(.text_l1) + SIZEOF(.text_l1))

{

  . = ALIGN(4);

  __sdata_l1 = .;

  *(.data.l1_t)  

  __edata_l1 = .;

 

  . = ALIGN(4);

  __sbss_l1 = .;

  LDS_L1_A_BSS

 

  . = ALIGN(32);

  LDS_L1_A_CACHE

 

  . = ALIGN(4);

  __ebss_l1 = .;

  LDS_L1_A_DATA       /*add by pz */

}

 

#if L1_DATA_B_LENGTH

# define LDS_L1_B_DATA  *(.l1.data.B)

# define LDS_L1_B_BSS   *(.l1.bss.B)

#else

# define LDS_L1_B_DATA

# define LDS_L1_B_BSS

#endif

.data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))

{

  . = ALIGN(4);

  __sdata_b_l1 = .;

  LDS_L1_B_DATA

  __edata_b_l1 = .;

 

  . = ALIGN(4);

  __sbss_b_l1 = .;

  LDS_L1_B_BSS

 

  . = ALIGN(4);

  __ebss_b_l1 = .;

}

QuoteReplyEditDelete

 

 

2008-09-24 06:11:34     Re: I can not locate the special data in L1_data section on uclinux2008

Mike Frysinger (UNITED STATES)

Message: 62626   

 

what exactly are you trying to do ?  and what exactly is the problem you are seeing ?

Attachments

    Outcomes