Code Warrior LCF file question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Warrior LCF file question

Jump to solution
1,643 Views
lvyang
Contributor III

 GROUP : {
    .ivor_branch_table (VLECODE) LOAD (ADDR(exception_handlers)) : {}
    .__exception_handlers  (VLECODE) LOAD (_e_ivor_branch_table) : {}
 } > exception_handlers

Where is the section ".ivor_branch_table" defined?

Where is the symbol "_e_ivor_branch_table" defined?

How to understand the meaning of structure above?

 

state: code above is generated by IDE automatically.

Labels (1)
1 Solution
1,474 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

section .ivor_branch_table is is defined by this line:

.ivor_branch_table (VLECODE) LOAD (ADDR(exception_handlers)) : {}

Symbol _e_ivor_branch_table is automatically generated by linker. It is the address of the end of the section .ivor_branch_table.

Meaning of the group is following:

1) create section .ivor_branch_table and load it to the address of exceptions_handlers defined in memory location.

2) create section .__exception_handlers and load it to address defined by _e_ivor_branch_table symbol (below the section .ivor_branch_table).

If you have any other questions, please feel free to write me back.

Regards,

Martin

View solution in original post

0 Kudos
Reply
4 Replies
1,474 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi lv,

what's your chip part number?

Jennie

0 Kudos
Reply
1,474 Views
lvyang
Contributor III

SPC560P34

0 Kudos
Reply
1,475 Views
martin_kovar
NXP Employee
NXP Employee

Hi,

section .ivor_branch_table is is defined by this line:

.ivor_branch_table (VLECODE) LOAD (ADDR(exception_handlers)) : {}

Symbol _e_ivor_branch_table is automatically generated by linker. It is the address of the end of the section .ivor_branch_table.

Meaning of the group is following:

1) create section .ivor_branch_table and load it to the address of exceptions_handlers defined in memory location.

2) create section .__exception_handlers and load it to address defined by _e_ivor_branch_table symbol (below the section .ivor_branch_table).

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 Kudos
Reply
1,474 Views
lvyang
Contributor III

Thanks a lot.