Skip to content

Commit

Permalink
ЛР14, 16. Уточнение скриптов компоновщика
Browse files Browse the repository at this point in the history
В описании .bss секции не учитывались возможные .sbss-секции программы.
Это приводило к тому, что не все переменные инициализировались нулем,
что могло привести к неопределенному поведению программ.
  • Loading branch information
HepoH3 committed Jul 4, 2024
1 parent 00880bd commit 1f5c1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Labs/14. Programming/linker_script.ld
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ SECTIONS
регионе "ram".
*/
_bss_start = .;
.bss : {*(.bss*)} >ram
.bss : {*(.*bss*)} >ram
_bss_end = .;


Expand Down
2 changes: 1 addition & 1 deletion Labs/16. Coremark/linker_script.ld
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ SECTIONS
регионе "ram".
*/
_bss_start = .;
.bss : {*(.bss*)} >ram
.bss : {*(.*bss*)} >ram
_bss_end = .;


Expand Down

0 comments on commit 1f5c1bc

Please sign in to comment.