Ro5bert / avra

Assembler for the Atmel AVR microcontroller family
GNU General Public License v2.0
156 stars 40 forks source link

Fix DSEG overlap detection #15

Closed Nevada317 closed 4 years ago

Nevada317 commented 4 years ago

fix_orglist and fix_orglist should not be called for .BYTE directive, as it ruins overlap detection.

This commit partially reverts 3e0d391ab7570036ddaeb38f6fe87ac718d9ffac

Ro5bert commented 4 years ago

Hi Nevada317,

Thanks for the issue and finding the problematic commit. I've made the change you suggested in commit d14b1db with one addition: checking if the argument to .byte directives is negative (and producing an error message if so).