mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user