Hi,
Please review my fix for 7145645 gas error: mod2.s: Error: attempt to
get value of unresolved symbol `L0':
http://fileserv/import/gccfss3/george3/webrev/7145645/
Extracted from the CR Evaluation:
The problem can be reproduced with a simple test case:
---
.title "Solaris_Master_Boot"
.intel_syntax noprefix
.code16
.text
mov cx, (offset SigErrMsg_end - offset SigErrMsg)
SigErrMsg: .ascii "Bad PBR sig"; SigErrMsg_end:
---
It turns out the fix up logic after the symbols had been resolved, i.e.
the labels were defined, was not collapsing the right operand of the
minus operator the same way as the left operand. This resulted in a
expression more complicated than expected being passed to the get symbol
value logic and ultimately the error message.
The proposed fix adds the additional processing to the right operand so
it is treated identically to the left.
Thanks,
George
_______________________________________________
userland-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/userland-discuss