Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bss section end address is less than start address

I am looking at ARC processor map file and found a section which end address is less than start address.

Is this normal or a bug in the linker script or other issues?

Section name         type     start addr    end addr    length
RM0_SECTION          bss       00040000    0003ffff     00000000
like image 687
electro Avatar asked Nov 17 '25 04:11

electro


1 Answers

This is a normal behavior.
The formula to comply with is the following:

length = "end addr" - "start addr" + 1

So:
- if the section is not empty, end addr corresponds to the last address that belongs to the section.
- if the section is empty, end addr equals start addr - 1, which means that end addr is NOT an end address in this case, as you observed for RM0_SECTION.

like image 177
Laurent H. Avatar answered Nov 18 '25 16:11

Laurent H.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!