Towards making KEEP_IT_REAL work again.

Fix bug that caused over-allocation of .text16 and .data16 memory areas
by a factor of 16.
This commit is contained in:
Michael Brown
2006-08-24 13:18:05 +00:00
parent cddf8df8d4
commit 6abfaa153b
7 changed files with 262 additions and 34 deletions

View File

@@ -15,7 +15,7 @@ SECTIONS {
* addresses, but may have individual link addresses depending on
* the memory model being used.
*
* The linker symbols {prefix,text}_link_addr, load_addr, and
* The linker symbols _{prefix,textdata}_link_addr, load_addr, and
* _max_align may be specified explicitly. If not specified, they
* will default to:
*
@@ -236,6 +236,8 @@ SECTIONS {
/*
* Values calculated to save code from doing it
*/
_load_size_pgh = ( _load_size / 16 );
_text16_size_pgh = ( ( _text16_size + 15 ) / 16 );
_data16_size_pgh = ( ( _data16_size + 15 ) / 16 );
_load_size_pgh = ( ( _load_size + 15 ) / 16 );
_rom_size = ( ( _load_size + 511 ) / 512 );
}