What is .abs_section_0, .abs_section_1, etc. for?

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

What is .abs_section_0, .abs_section_1, etc. for?

Jump to solution
874 Views
leesp
Contributor I

Hi,

I am using CW for MC9S08.

I noted that in my .map file there are sections which are not defined in the .prm file, such as the .abs_section_x..

Can anyone explain what these sections are for?

 

*********************************************************************************************SECTION-ALLOCATION SECTIONSection Name                    Size  Type     From       To       Segment---------------------------------------------------------------------------------------------.data                              2   R/W      0x100      0x101   RAM.init                            132     R     0x8000     0x8083   ROM.startData                        18     R     0x8084     0x8095   ROM.text                             30     R     0x8096     0x80B3   ROM.rodata1                          18     R     0x80B4     0x80C5   ROM.copy                              8     R     0x80C6     0x80CD   ROM.abs_section_0                     1   N/I        0x0        0x0   .absSeg0.abs_section_1                     1   N/I        0x1        0x1   .absSeg1.abs_section_2                     1   N/I        0x2        0x2   .absSeg2

 sdfas

Labels (1)
Tags (1)
0 Kudos
1 Solution
468 Views
CrasyCat
Specialist III

Hello

 

All these sections are internally created by the compiler when you use the @ operator to define a variable at an absolute address.

 

This is happening for example for each I/O register defined in the msc908*.h file.

 

CrasyCat

View solution in original post

0 Kudos
3 Replies
469 Views
CrasyCat
Specialist III

Hello

 

All these sections are internally created by the compiler when you use the @ operator to define a variable at an absolute address.

 

This is happening for example for each I/O register defined in the msc908*.h file.

 

CrasyCat

0 Kudos
468 Views
leesp
Contributor I

Hi CrasyCat,

Thanks for the very useful info.

I cannot find such information in the SmartLinker user manual? What manual would you recommend for newbie to learn about how the Linker works?

Thanks..

 

0 Kudos
468 Views
CrasyCat
Specialist III

Hello

 

SmartLinker user manual is describing how the linker works.

 

CrasyCat