[WARNING]
A segment was used several times with different attributes.
#pragma DATA_SEG FAR AA
..
#pragma DATA_SEG NEAR BB
Use the same attributes with one segment. Keep variables of the same segment together to avoid inconsistencies.