mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Correct absolute section alignment.
This commit is contained in:
@ -303,9 +303,10 @@ frag_align (alignment, fill_character, max)
|
||||
if (now_seg == absolute_section)
|
||||
{
|
||||
addressT new_off;
|
||||
addressT mask;
|
||||
|
||||
new_off = ((abs_section_offset + alignment - 1)
|
||||
&~ ((1 << alignment) - 1));
|
||||
mask = (~ (addressT) 0) << alignment;
|
||||
new_off = (abs_section_offset + ~ mask) & mask;
|
||||
if (max == 0 || new_off - abs_section_offset <= (addressT) max)
|
||||
abs_section_offset = new_off;
|
||||
}
|
||||
|
Reference in New Issue
Block a user